Keep gcc -Wall happy.

This commit is contained in:
Guido van Rossum 1996-12-05 23:43:35 +00:00
parent 60fca2c90f
commit a376cc5cc8
27 changed files with 93 additions and 56 deletions

View file

@ -34,6 +34,14 @@ PERFORMANCE OF THIS SOFTWARE.
#include "allobjects.h"
#include "modsupport.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#include <fcntl.h>
@ -147,7 +155,6 @@ fcntl_flock(self, args)
int fd;
int code;
int ret;
FILE *f;
if (!getargs(args, "(ii)", &fd, &code))
return NULL;
@ -195,7 +202,6 @@ fcntl_lockf(self, args)
object *args;
{
int fd, code, len = 0, start = 0, whence = 0, ret;
FILE *f;
if (!PyArg_ParseTuple(args, "ii|iii", &fd, &code, &len,
&start, &whence))