Changeset 187 in openpam for trunk/lib/openpam_get_option.c


Ignore:
Timestamp:
Dec 12, 2002, 5:06:29 PM (18 years ago)
Author:
Dag-Erling Smørgrav
Message:

Instrument entry and exit points.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_get_option.c

    r157 r187  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/lib/openpam_get_option.c#4 $
     34 * $P4: //depot/projects/openpam/lib/openpam_get_option.c#5 $
    3535 */
    3636
     
    5858        int i;
    5959
     60        ENTER();
    6061        if (pamh == NULL || pamh->current == NULL || option == NULL)
    61                 return (NULL);
     62                RETURNS(NULL);
    6263        cur = pamh->current;
    6364        len = strlen(option);
     
    6566                if (strncmp(cur->optv[i], option, len) == 0) {
    6667                        if (cur->optv[i][len] == '\0')
    67                                 return (&cur->optv[i][len]);
     68                                RETURNS(&cur->optv[i][len]);
    6869                        else if (cur->optv[i][len] == '=')
    69                                 return (&cur->optv[i][len + 1]);
     70                                RETURNS(&cur->optv[i][len + 1]);
    7071                }
    7172        }
    72         return (NULL);
     73        RETURNS(NULL);
    7374}
    7475
Note: See TracChangeset for help on using the changeset viewer.