summaryrefslogtreecommitdiff
path: root/misc-utils/wipefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/wipefs.c')
-rw-r--r--misc-utils/wipefs.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c
index dbfabc4a..d3033446 100644
--- a/misc-utils/wipefs.c
+++ b/misc-utils/wipefs.c
@@ -35,7 +35,7 @@
#include "nls.h"
#include "xalloc.h"
-#include "strtosize.h"
+#include "strutils.h"
struct wipe_desc {
loff_t offset; /* magic string offset */
@@ -136,15 +136,6 @@ add_offset(struct wipe_desc *wp0, loff_t offset, int zap)
return wp;
}
-static inline char *
-xstrdup(const char *s)
-{
- char *x = strdup(s);
- if (!x)
- err(EXIT_FAILURE, _("strdup failed"));
- return x;
-}
-
static struct wipe_desc *
get_offset_from_probe(struct wipe_desc *wp, blkid_probe pr, int zap)
{