From 1d8dc4293f772369e2da018ba5f1bf6e67967f3a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 23 Jan 1996 10:00:23 +0000 Subject: Mon Jan 22 10:40:40 1996 Roland McGrath * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h. * io/fts.h (FTSENT): Define fts_compar member with prototype. * hurd/hurd.h: Use prototype in getcttyid decl. * stdlib/l64a.c: Fix typo in last change. * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof for determining size of types. * stdlib/srand48_r.c: Likewise. * misc/utmp.h: Declare login, logout, logwtmp. * misc/logout.c: Declare argument as pointer to const. * misc/login.c: Likewise. * misc/logwtmp.c: Likewise. Include time.h, string.h. * misc/efgcvt_r.c: Include stdlib.h. * io/mknod.c: Include sys/types.h. * gmon/sys/gmon.h: Declare monstartup, _mcleanup. * csu/gmon-start.c (_start, etext): Declare with prototypes. * stdio-common/vfscanf.c (%[): Fix range handling. --- io/fts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'io/fts.h') diff --git a/io/fts.h b/io/fts.h index 84dbe14bc7..643a027c2c 100644 --- a/io/fts.h +++ b/io/fts.h @@ -36,6 +36,8 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include + typedef struct { struct _ftsent *fts_cur; /* current node */ struct _ftsent *fts_child; /* linked list of children */ @@ -45,7 +47,7 @@ typedef struct { int fts_rfd; /* fd for root */ int fts_pathlen; /* sizeof(path) */ int fts_nitems; /* elements in the sort array */ - int (*fts_compar)(); /* compare function */ + int (*fts_compar) __P((const void *, const void *)); /* compare fn */ #define FTS_COMFOLLOW 0x001 /* follow command line symlinks */ #define FTS_LOGICAL 0x002 /* logical walk */ @@ -111,8 +113,6 @@ typedef struct _ftsent { char fts_name[1]; /* file name */ } FTSENT; -#include - __BEGIN_DECLS FTSENT *fts_children __P((FTS *, int)); int fts_close __P((FTS *)); -- cgit 1.4.1