Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/openpam/dist/lib Avoid implicit cast on the ret...
details: https://anonhg.NetBSD.org/src/rev/57650fa6d979
branches: trunk
changeset: 325713:57650fa6d979
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jan 03 22:49:21 2014 +0000
description:
Avoid implicit cast on the return value.
diffstat:
external/bsd/openpam/dist/lib/openpam_configure.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 0ecf89dcb3c1 -r 57650fa6d979 external/bsd/openpam/dist/lib/openpam_configure.c
--- a/external/bsd/openpam/dist/lib/openpam_configure.c Fri Jan 03 22:28:51 2014 +0000
+++ b/external/bsd/openpam/dist/lib/openpam_configure.c Fri Jan 03 22:49:21 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: openpam_configure.c,v 1.6 2013/12/27 20:10:21 christos Exp $ */
+/* $NetBSD: openpam_configure.c,v 1.7 2014/01/03 22:49:21 joerg Exp $ */
/*-
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
@@ -109,9 +109,9 @@
static pam_control_t
parse_control_flag(const char *name)
{
- int i;
+ pam_control_t i;
- for (i = 0; i < PAM_NUM_CONTROL_FLAGS; ++i)
+ for (i = PAM_BINDING; i < PAM_NUM_CONTROL_FLAGS; ++i)
if (strcmp(pam_control_flag_name[i], name) == 0)
return (i);
return ((pam_control_t)-1);
Home |
Main Index |
Thread Index |
Old Index