diff options
author | 2007-10-12 22:41:42 +0000 | |
---|---|---|
committer | 2007-10-12 22:41:42 +0000 | |
commit | 4c885720c5ab31ecc094cfa0c1fa75145eb7e905 (patch) | |
tree | 2ff7470bbc34176f30275140808bfc321879c638 /lib/libc | |
parent | Fix broken build. Reported by Gregory McGarry on pcc-list. (diff) | |
download | wireguard-openbsd-4c885720c5ab31ecc094cfa0c1fa75145eb7e905.tar.xz wireguard-openbsd-4c885720c5ab31ecc094cfa0c1fa75145eb7e905.zip |
fix typo in _telldir_unlocked function prototype, to avoid warning.
while there, put all function prototypes in header file.
ok kurt@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/rewinddir.c | 6 | ||||
-rw-r--r-- | lib/libc/gen/telldir.h | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/gen/rewinddir.c b/lib/libc/gen/rewinddir.c index 388d6404d27..2ac2554ba51 100644 --- a/lib/libc/gen/rewinddir.c +++ b/lib/libc/gen/rewinddir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rewinddir.c,v 1.8 2007/10/02 16:14:58 kurt Exp $ */ +/* $OpenBSD: rewinddir.c,v 1.9 2007/10/12 22:41:42 chl Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -32,9 +32,7 @@ #include <dirent.h> #include "thread_private.h" - -void __seekdir(DIR *, long); -long __telldir_unlocked(DIR *); +#include "telldir.h" void rewinddir(DIR *dirp) diff --git a/lib/libc/gen/telldir.h b/lib/libc/gen/telldir.h index 7991212d22d..982dd7763a4 100644 --- a/lib/libc/gen/telldir.h +++ b/lib/libc/gen/telldir.h @@ -1,4 +1,4 @@ -/* $OpenBSD: telldir.h,v 1.2 2006/04/10 12:04:20 otto Exp $ */ +/* $OpenBSD: telldir.h,v 1.3 2007/10/12 22:41:42 chl Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -58,6 +58,7 @@ struct _telldir { long td_last; /* last tell/seekdir */ }; -void __seekdir(DIR *, long); +long _telldir_unlocked(DIR *); +void __seekdir(DIR *, long); #endif |