diff options
author | 2003-02-17 18:26:56 +0000 | |
---|---|---|
committer | 2003-02-17 18:26:56 +0000 | |
commit | 2313cda07485351d4a8a9f0ebae0c6aa2a25d558 (patch) | |
tree | 45fbe59696ca7f1c537d1e2f5ac9f5f71ddb67d0 /lib/libc | |
parent | enqueue the copy that was just made, not the original (probably fixes kernel/3097, waiting to hear). (diff) | |
download | wireguard-openbsd-2313cda07485351d4a8a9f0ebae0c6aa2a25d558.tar.xz wireguard-openbsd-2313cda07485351d4a8a9f0ebae0c6aa2a25d558.zip |
minor KNF
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/pw_dup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/pw_dup.c b/lib/libc/gen/pw_dup.c index 2b94192cc51..f1040a02ad5 100644 --- a/lib/libc/gen/pw_dup.c +++ b/lib/libc/gen/pw_dup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pw_dup.c,v 1.2 2002/04/29 18:43:08 millert Exp $ */ +/* $OpenBSD: pw_dup.c,v 1.3 2003/02/17 18:26:56 millert Exp $ */ /* * Copyright (c) 2000,2002 Todd C. Miller <Todd.Miller@courtesan.com> @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: pw_dup.c,v 1.2 2002/04/29 18:43:08 millert Exp $"; +static const char rcsid[] = "$OpenBSD: pw_dup.c,v 1.3 2003/02/17 18:26:56 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -72,7 +72,7 @@ pw_dup(const struct passwd *pw) total += ssize; } if ((cp = malloc(total)) == NULL) - return(NULL); + return (NULL); newpw = (struct passwd *)cp; /* @@ -112,5 +112,5 @@ pw_dup(const struct passwd *pw) cp += ssize; } - return(newpw); + return (newpw); } |