add -Wundef, fix uncovered bugs

This commit is contained in:
Denis Vlasenko
2006-11-17 20:29:00 +00:00
parent 04c6386c45
commit a7189f01a4
19 changed files with 71 additions and 74 deletions

View File

@@ -13,20 +13,20 @@
#include <stdio.h>
#include <string.h>
#if HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#if HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/stat.h>
#include <dirent.h>
#if HAVE_ERRNO_H
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#if HAVE_SYS_MKDEV_H
#ifdef HAVE_SYS_MKDEV_H
#include <sys/mkdev.h>
#endif