summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib/openpam_get_option.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-12-16 15:28:05 +0000
committerdes <des@FreeBSD.org>2002-12-16 15:28:05 +0000
commit9c13a1ee5f744e6c21ae65cb3ed17e00d241a72f (patch)
treeecbdd15371b5e36058a6a262d89a55baf407a91c /contrib/openpam/lib/openpam_get_option.c
parent7966ff24b5238d36ecd0fce943ba5db101374b4e (diff)
parent18c136aadd659f7b141653f3f614063e70bc59eb (diff)
downloadFreeBSD-src-9c13a1ee5f744e6c21ae65cb3ed17e00d241a72f.zip
FreeBSD-src-9c13a1ee5f744e6c21ae65cb3ed17e00d241a72f.tar.gz
This commit was generated by cvs2svn to compensate for changes in r107937,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/openpam/lib/openpam_get_option.c')
-rw-r--r--contrib/openpam/lib/openpam_get_option.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/openpam/lib/openpam_get_option.c b/contrib/openpam/lib/openpam_get_option.c
index b70b945..d3993ea 100644
--- a/contrib/openpam/lib/openpam_get_option.c
+++ b/contrib/openpam/lib/openpam_get_option.c
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/openpam/lib/openpam_get_option.c#4 $
+ * $P4: //depot/projects/openpam/lib/openpam_get_option.c#5 $
*/
#include <sys/param.h>
@@ -57,19 +57,20 @@ openpam_get_option(pam_handle_t *pamh,
size_t len;
int i;
+ ENTER();
if (pamh == NULL || pamh->current == NULL || option == NULL)
- return (NULL);
+ RETURNS(NULL);
cur = pamh->current;
len = strlen(option);
for (i = 0; i < cur->optc; ++i) {
if (strncmp(cur->optv[i], option, len) == 0) {
if (cur->optv[i][len] == '\0')
- return (&cur->optv[i][len]);
+ RETURNS(&cur->optv[i][len]);
else if (cur->optv[i][len] == '=')
- return (&cur->optv[i][len + 1]);
+ RETURNS(&cur->optv[i][len + 1]);
}
}
- return (NULL);
+ RETURNS(NULL);
}
/*
OpenPOWER on IntegriCloud