From: Chuck Lever <chuck.lever@oracle.com>
To: steved@redhat.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH 4/5] exportfs: exportfs.c no longer needs #include "xmalloc.h"
Date: Mon, 23 Aug 2010 13:11:22 -0400 [thread overview]
Message-ID: <20100823171122.2123.24249.stgit@matisse.1015granger.net> (raw)
In-Reply-To: <20100823170552.2123.43124.stgit@matisse.1015granger.net>
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>
---
utils/exportfs/exportfs.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index edc1625..93bad32 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -12,6 +12,8 @@
#include <config.h>
#endif
+#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/vfs.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -20,13 +22,13 @@
#include <string.h>
#include <stdarg.h>
#include <getopt.h>
+#include <fcntl.h>
#include <netdb.h>
#include <errno.h>
-#include "xmalloc.h"
+
#include "misc.h"
#include "nfslib.h"
#include "exportfs.h"
-#include "xmalloc.h"
#include "xlog.h"
static void export_all(int verbose);
next prev parent reply other threads:[~2010-08-23 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 17:10 [PATCH 0/5] More mountd patches Chuck Lever
2010-08-23 17:10 ` [PATCH 1/5] libexport: Add a common exit label to check_netgroup() Chuck Lever
2010-08-23 17:11 ` [PATCH 2/5] libexport: Fix IP address check in check_netgroup() Chuck Lever
2010-08-23 17:11 ` [PATCH 3/5] statd: statd fails to monitor if no reverse mapping of mon_name exists Chuck Lever
2010-08-23 17:11 ` Chuck Lever [this message]
2010-08-23 17:11 ` [PATCH 5/5] exportfs: Use xlog() for error reporting Chuck Lever
[not found] ` <20100823170552.2123.43124.stgit-RytpoXr2tKZ9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2010-08-24 11:24 ` [PATCH 0/5] More mountd patches Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100823171122.2123.24249.stgit@matisse.1015granger.net \
--to=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=steved@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox