summaryrefslogtreecommitdiffstats
path: root/utils/nfsidmap/nfsidmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nfsidmap/nfsidmap.c')
-rw-r--r--utils/nfsidmap/nfsidmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/nfsidmap/nfsidmap.c b/utils/nfsidmap/nfsidmap.c
index 63545fc..374bc5d 100644
--- a/utils/nfsidmap/nfsidmap.c
+++ b/utils/nfsidmap/nfsidmap.c
@@ -15,6 +15,7 @@
#include <unistd.h>
#include "xlog.h"
#include "conffile.h"
+#include "xcommon.h"
int verbose = 0;
char *usage = "Usage: %s [-vh] [-c || [-u|-g|-r key] || -d || -l || [-t timeout] key desc]";
@@ -441,11 +442,7 @@ int main(int argc, char **argv)
key = strtol(argv[optind++], NULL, 10);
- arg = strdup(argv[optind]);
- if (arg == NULL) {
- xlog_err("strdup failed: %m");
- return EXIT_FAILURE;
- }
+ arg = xstrdup(argv[optind]);
type = strtok(arg, ":");
value = strtok(NULL, ":");
if (value == NULL) {