diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-12 22:41:43 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-10-12 22:41:43 +0000 |
commit | e5dfb989d70e1c90eedc1bb41d22fe757209ef6f (patch) | |
tree | d12ba143145f553b0185c7cfe444622bc55743ea /lib/libc/gen | |
parent | d7ee84a9145aa305bcc341339b0d4211b246b8e4 (diff) |
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/gen')
-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 |