diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-10-24 17:13:37 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-10-24 17:13:37 +0000 |
commit | 49dde7b2beb50abee3bbd3f3f984f408c2fda0ec (patch) | |
tree | dd0fdb4330ff8bfd1d1022201af07fe4b96f9f74 /lib/libc/gen/auth_subr.c | |
parent | 5dfe1978df640fe5f7b95133a7fea9c57c6e21cb (diff) |
Use va_copy() for varargs assignemnt. va_copy() is standard with C99
and gcc3.2 requires this on powerpc.
Diffstat (limited to 'lib/libc/gen/auth_subr.c')
-rw-r--r-- | lib/libc/gen/auth_subr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c index 6aab2bfcd63..e6faaa09efa 100644 --- a/lib/libc/gen/auth_subr.c +++ b/lib/libc/gen/auth_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth_subr.c,v 1.17 2002/10/16 19:45:41 millert Exp $ */ +/* $OpenBSD: auth_subr.c,v 1.18 2002/10/24 17:13:36 drahn Exp $ */ /*- * Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc. @@ -129,7 +129,9 @@ static va_list nilap; * Quick one liners that only exist to keep auth_session_t opaque */ void auth_setstate(auth_session_t *as, int s){ as->state = s; } -void auth_set_va_list(auth_session_t *as, va_list ap) { as->ap = ap; } +void auth_set_va_list(auth_session_t *as, va_list ap) { + va_copy(as->ap, ap); +} int auth_getstate(auth_session_t *as) { return (as->state); } struct passwd *auth_getpwd(auth_session_t *as) { return (as->pwd); } |