diff options
author | Guido van Rossum <guido@python.org> | 1996-12-05 23:43:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-12-05 23:43:35 (GMT) |
commit | a376cc5cc86c62f912886c4002ed1a9b3b213b88 (patch) | |
tree | d505b439cc8f6aac1ba75374b6652857273274c0 /Modules/posixmodule.c | |
parent | 60fca2c90fe4d00715f4ae28d68560e67955ab9b (diff) | |
download | cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.zip cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.gz cpython-a376cc5cc86c62f912886c4002ed1a9b3b213b88.tar.bz2 |
Keep gcc -Wall happy.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index f8cc298..119e871 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -52,6 +52,10 @@ PERFORMANCE OF THIS SOFTWARE. #include <sys/wait.h> /* For WNOHANG */ #endif +#ifdef HAVE_SIGNAL_H +#include <signal.h> +#endif + #include "mytime.h" /* For clock_t on some systems */ #ifdef HAVE_FCNTL_H @@ -574,7 +578,7 @@ posix_listdir(self, args) while ((ep = readdir(dirp)) != NULL) { if (ep->d_name[0] == '.' && (NAMLEN(ep) == 1 || - ep->d_name[1] == '.' && NAMLEN(ep) == 2)) + (ep->d_name[1] == '.' && NAMLEN(ep) == 2))) continue; v = newsizedstringobject(ep->d_name, NAMLEN(ep)); if (v == NULL) { @@ -709,7 +713,6 @@ posix_uname(self, args) object *args; { struct utsname u; - object *v; int res; if (!getnoarg(args)) return NULL; @@ -776,7 +779,7 @@ posix__exit(self, args) if (!getintarg(args, &sts)) return NULL; _exit(sts); - /* NOTREACHED */ + return NULL; /* Make gcc -Wall happy */ } #ifdef HAVE_EXECV |