summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-15 20:16:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-15 20:16:09 +0000
commit6d7c2315d98a76a5ab9204663e9e9823da193764 (patch)
tree0bf17629bc2f511f2b9f444f99cde4627c1b0602 /lib/libc
parent9856ade79a1c59da40b3cd174804bf9363d156ca (diff)
cast NULL varargs sentinel to char * so it is 64 bit on alpha & sparc64
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/authenticate.c10
1 files changed, 5 insertions, 5 deletions
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);
}