]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
exportfs: exportfs.c no longer needs #include "xmalloc.h"
authorChuck Lever <chuck.lever@oracle.com>
Tue, 24 Aug 2010 11:18:04 +0000 (07:18 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 24 Aug 2010 11:22:52 +0000 (07:22 -0400)
Clean up:  No calls to xmalloc() or xstrdup() here.  No need for the
double #include of xmalloc.h.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/exportfs/exportfs.c

index edc1625a8b76ce6648624cdbfe565d1d2faf6b8a..93bad32241fae7d5d0c4f7276e75f3290da5ffdf 100644 (file)
@@ -12,6 +12,8 @@
 #include <config.h>
 #endif
 
 #include <config.h>
 #endif
 
+#include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/vfs.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <sys/vfs.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdarg.h>
 #include <getopt.h>
 #include <string.h>
 #include <stdarg.h>
 #include <getopt.h>
+#include <fcntl.h>
 #include <netdb.h>
 #include <errno.h>
 #include <netdb.h>
 #include <errno.h>
-#include "xmalloc.h"
+
 #include "misc.h"
 #include "nfslib.h"
 #include "exportfs.h"
 #include "misc.h"
 #include "nfslib.h"
 #include "exportfs.h"
-#include "xmalloc.h"
 #include "xlog.h"
 
 static void    export_all(int verbose);
 #include "xlog.h"
 
 static void    export_all(int verbose);