From 6d7c2315d98a76a5ab9204663e9e9823da193764 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 15 Oct 2002 20:16:09 +0000 Subject: cast NULL varargs sentinel to char * so it is 64 bit on alpha & sparc64 --- lib/libc/gen/authenticate.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/authenticate.c b/lib/libc/gen/authenticate.c index f8b031bee5b..c4c236de3d5 100644 --- a/lib/libc/gen/authenticate.c +++ b/lib/libc/gen/authenticate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authenticate.c,v 1.12 2002/07/14 23:47:30 deraadt Exp $ */ +/* $OpenBSD: authenticate.c,v 1.13 2002/10/15 20:16:08 millert Exp $ */ /*- * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. @@ -279,7 +279,7 @@ auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type) } if (approve) auth_call(as, approve, strrchr(approve, '/') + 1, name, - lc->lc_class, type, 0); + lc->lc_class, type, (char *)NULL); out: if (approve) @@ -343,7 +343,7 @@ auth_usercheck(char *name, char *style, char *type, char *password) auth_setdata(as, password, strlen(password) + 1); } else as = NULL; - as = auth_verify(as, style, name, lc->lc_class, NULL); + as = auth_verify(as, style, name, lc->lc_class, (char *)NULL); login_close(lc); return (as); } @@ -442,7 +442,7 @@ auth_userresponse(auth_session_t *as, char *response, int more) snprintf(path, sizeof(path), _PATH_AUTHPROG "%s", style); - auth_call(as, path, style, "-s", "response", name, class, NULL); + auth_call(as, path, style, "-s", "response", name, class, (char *)NULL); /* * If they authenticated then make sure they did not expire @@ -489,6 +489,6 @@ auth_verify(auth_session_t *as, char *style, char *name, ...) va_start(ap, name); auth_set_va_list(as, ap); auth_call(as, path, auth_getitem(as, AUTHV_STYLE), "-s", - auth_getitem(as, AUTHV_SERVICE), name, NULL); + auth_getitem(as, AUTHV_SERVICE), name, (char *)NULL); return (as); } -- cgit v1.2.3