]> sjero.net Git - wget/blobdiff - src/utils.c
[svn] Remove warnings under Borland C.
[wget] / src / utils.c
index 0fe30bfd38e494b6ea0991733ba948a4a7495bb4..1c6f0b060569b5efb56daa217dd1c949e4259087 100644 (file)
@@ -511,13 +511,14 @@ unique_create (const char *name, int binary, char **opened_name)
 FILE *
 fopen_excl (const char *fname, int binary)
 {
+  int fd;
 #ifdef O_EXCL
   int flags = O_WRONLY | O_CREAT | O_EXCL;
 # ifdef O_BINARY
   if (binary)
-    flags |= O_BINARY
+    flags |= O_BINARY;
 # endif
-  int fd = open (fname, flags, 0666);
+  fd = open (fname, flags, 0666);
   if (fd < 0)
     return NULL;
   return fdopen (fd, binary ? "wb" : "w");
@@ -535,9 +536,7 @@ fopen_excl (const char *fname, int binary)
 int
 make_directory (const char *directory)
 {
-  int quit = 0;
-  int i;
-  int ret = 0;
+  int i, ret, quit = 0;
   char *dir;
 
   /* Make a copy of dir, to be able to write to it.  Otherwise, the
@@ -875,7 +874,7 @@ read_file (const char *file)
 {
   int fd;
   struct file_memory *fm;
-  wgint size;
+  long size;
   int inhibit_close = 0;
 
   /* Some magic in the finest tradition of Perl and its kin: if FILE