]> sjero.net Git - wget/blobdiff - src/utils.c
[svn] Minor fixes prompted by `lint'.
[wget] / src / utils.c
index 0130bc2d21df9311e9c32c3c7042cc527c98d736..32c17b4bfd9026e4b8fb8240c62bb580edf0cfc4 100644 (file)
@@ -50,9 +50,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #endif
 #include <fcntl.h>
 #include <assert.h>
+
+/* For TIOCGWINSZ and friends: */
 #ifdef HAVE_SYS_IOCTL_H
 # include <sys/ioctl.h>
 #endif
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+#endif
 
 #include "wget.h"
 #include "utils.h"
@@ -507,13 +512,10 @@ path_simplify (char *path)
 {
   register int i, start;
   int changes = 0;
-  char stub_char;
 
   if (!*path)
     return 0;
 
-  stub_char = '/';
-
   if (path[0] == '/')
     /* Preserve initial '/'. */
     ++path;