]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Clean up: remove unneeded headers from utils/mount/stropts.c.
authorChuck Lever <chuck.lever@oracle.com>
Tue, 15 Jul 2008 17:57:10 +0000 (13:57 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 15 Jul 2008 17:57:10 +0000 (13:57 -0400)
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/stropts.c

index b54df40908ef729b11f97ceb29f670988a4ad563..e4a440890e89ad01b628b4d8aebd4e865e1c8e1f 100644 (file)
 #include <config.h>
 #endif
 
-#include <ctype.h>
 #include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
 #include <errno.h>
 #include <netdb.h>
 #include <time.h>
@@ -42,7 +38,6 @@
 #include "xcommon.h"
 #include "mount.h"
 #include "nls.h"
-#include "nfs_mount.h"
 #include "mount_constants.h"
 #include "stropts.h"
 #include "error.h"
 #include "version.h"
 #include "parse_dev.h"
 
-#ifdef HAVE_RPCSVC_NFS_PROT_H
-#include <rpcsvc/nfs_prot.h>
-#else
-#include <linux/nfs.h>
-#define nfsstat nfs_stat
+#ifndef NFS_PROGRAM
+#define NFS_PROGRAM    (100003)
 #endif
 
 #ifndef NFS_PORT
-#define NFS_PORT 2049
+#define NFS_PORT       (2049)
 #endif
 
 #ifndef NFS_MAXHOSTNAME