Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/openpam/lib fix gcc-4.5 cast warning



details:   https://anonhg.NetBSD.org/src/rev/bf9768745c4a
branches:  trunk
changeset: 768467:bf9768745c4a
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 17 09:55:41 2011 +0000

description:
fix gcc-4.5 cast warning

diffstat:

 dist/openpam/lib/openpam_dispatch.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r c986fac7dde6 -r bf9768745c4a dist/openpam/lib/openpam_dispatch.c
--- a/dist/openpam/lib/openpam_dispatch.c       Wed Aug 17 09:53:53 2011 +0000
+++ b/dist/openpam/lib/openpam_dispatch.c       Wed Aug 17 09:55:41 2011 +0000
@@ -32,7 +32,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: openpam_dispatch.c,v 1.4 2008/01/27 01:22:59 christos Exp $
+ * $Id: openpam_dispatch.c,v 1.5 2011/08/17 09:55:41 christos Exp $
  */
 
 #include <sys/param.h>
@@ -121,7 +121,7 @@
                            _pam_sm_func_name[primitive], chain->module->path);
 #endif
                        r = (chain->module->func[primitive])(pamh, flags,
-                           chain->optc, (const char **)chain->optv);
+                           chain->optc, (void *)chain->optv);
                        pamh->current = NULL;
 #ifdef DEBUG
                        openpam_log(PAM_LOG_DEBUG, "%s: %s(): %s",



Home | Main Index | Thread Index | Old Index