Changeset 194 in openpam for trunk


Ignore:
Timestamp:
Jan 3, 2003, 3:49:21 AM (17 years ago)
Author:
Dag-Erling Smørgrav
Message:

On second thought, use RETURNS() since environment variables are
strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/pam_getenv.c

    r193 r194  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/pam_getenv.c#9 $
     34 * $P4: //depot/projects/openpam/lib/pam_getenv.c#10 $
    3535 */
    3636
     
    5757        ENTER();
    5858        if (pamh == NULL)
    59                 RETURNP(NULL);
     59                RETURNS(NULL);
    6060        if (name == NULL || strchr(name, '=') != NULL)
    61                 RETURNP(NULL);
     61                RETURNS(NULL);
    6262        if ((i = openpam_findenv(pamh, name, strlen(name))) == -1)
    63                 RETURNP(NULL);
    64         RETURNP(strdup(pamh->env[i]));
     63                RETURNS(NULL);
     64        RETURNS(strdup(pamh->env[i]));
    6565}
    6666
Note: See TracChangeset for help on using the changeset viewer.