about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-20 10:00:23 +0000
committerRoland McGrath <roland@gnu.org>1996-01-20 10:00:23 +0000
commiteb63bdd072eafe6aba40d254a71fd87285f497da (patch)
tree6e65cc839e06b6cbed8609bd829efbd802367c35 /posix
parent522548fb473c5855e399596e838932963e03695f (diff)
downloadglibc-eb63bdd072eafe6aba40d254a71fd87285f497da.tar.gz
glibc-eb63bdd072eafe6aba40d254a71fd87285f497da.tar.xz
glibc-eb63bdd072eafe6aba40d254a71fd87285f497da.zip
* sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not cvs/libc-960120
	__tcdrain.

	* posix/glob.c (glob): Use prototype in getlogin decl.

	* db/ndbm.h: Declare dbm_error, dbm_clearerr.
	* db/db/db.c (__dberr): Define with prototype.
	(__dbpanic): Use prototypes in casts.
	* db/hash/hash_log2.c: Add prototype decl.

	* sysdeps/generic/_strerror.c (_strerror_internal): Define with
	prototype.
Diffstat (limited to 'posix')
-rw-r--r--posix/getopt.c7
-rw-r--r--posix/glob.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/posix/getopt.c b/posix/getopt.c
index 371b6f10f9..a85053f825 100644
--- a/posix/getopt.c
+++ b/posix/getopt.c
@@ -230,6 +230,10 @@ static int last_nonopt;
    `first_nonopt' and `last_nonopt' are relocated so that they describe
    the new indices of the non-options in ARGV after they are moved.  */
 
+#if defined (__STDC__) && __STDC__
+static void exchange (char **);
+#endif
+
 static void
 exchange (argv)
      char **argv;
@@ -288,6 +292,9 @@ exchange (argv)
 
 /* Initialize the internal data when the first call is made.  */
 
+#if defined (__STDC__) && __STDC__
+static const char *_getopt_initialize (const char *);
+#endif
 static const char *
 _getopt_initialize (optstring)
      const char *optstring;
diff --git a/posix/glob.c b/posix/glob.c
index d628b84617..c8f2eabc5d 100644
--- a/posix/glob.c
+++ b/posix/glob.c
@@ -358,7 +358,7 @@ glob (pattern, flags, errfunc, pglob)
 	  dirname = getenv ("HOME");
 	  if (dirname == NULL || dirname[0] == '\0')
 	    {
-	      extern char *getlogin ();
+	      extern char *getlogin __P ((void));
 	      char *name = getlogin ();
 	      if (name != NULL)
 		{