diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 21:03:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 21:03:11 +0000 |
commit | 4dba6a5e639357ec5b17c397ad648b7c98e3ba12 (patch) | |
tree | 108501f056c58743e71328f45cbc63154295e75a /lib/libc/gen/dirname.c | |
parent | e9c67dcf958b38635d2c444765b8d17227635cc5 (diff) |
ansification; checked by pval
Diffstat (limited to 'lib/libc/gen/dirname.c')
-rw-r--r-- | lib/libc/gen/dirname.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/gen/dirname.c b/lib/libc/gen/dirname.c index 9e419aa5e63..0db5d046c0a 100644 --- a/lib/libc/gen/dirname.c +++ b/lib/libc/gen/dirname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dirname.c,v 1.8 2003/06/03 01:52:39 millert Exp $ */ +/* $OpenBSD: dirname.c,v 1.9 2003/06/11 21:03:10 deraadt Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: dirname.c,v 1.8 2003/06/03 01:52:39 millert Exp $"; +static char rcsid[] = "$OpenBSD: dirname.c,v 1.9 2003/06/11 21:03:10 deraadt Exp $"; #endif /* not lint */ #include <errno.h> @@ -26,8 +26,7 @@ static char rcsid[] = "$OpenBSD: dirname.c,v 1.8 2003/06/03 01:52:39 millert Exp #include <sys/param.h> char * -dirname(path) - const char *path; +dirname(const char *path) { static char bname[MAXPATHLEN]; register const char *endp; |