summaryrefslogtreecommitdiffstats
path: root/misc-utils/blkid.c
diff options
context:
space:
mode:
authorSami Kerola2013-03-21 22:47:14 +0100
committerKarel Zak2013-03-26 10:53:28 +0100
commitfe20e5d14a5909b1325468401e647df4c39980ec (patch)
tree66b2ce7e80030fd8c21ebc3f22016797fd7d552f /misc-utils/blkid.c
parentmount: improve --move error message on shared trees (diff)
downloadkernel-qcow2-util-linux-fe20e5d14a5909b1325468401e647df4c39980ec.tar.gz
kernel-qcow2-util-linux-fe20e5d14a5909b1325468401e647df4c39980ec.tar.xz
kernel-qcow2-util-linux-fe20e5d14a5909b1325468401e647df4c39980ec.zip
blkid: use xalloc.h when possible
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/blkid.c')
-rw-r--r--misc-utils/blkid.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c
index 78e0a9383..fd27da7f0 100644
--- a/misc-utils/blkid.c
+++ b/misc-utils/blkid.c
@@ -49,6 +49,7 @@ extern int optind;
#include "closestream.h"
#include "ttyutils.h"
+#include "xalloc.h"
const char *progname = "blkid";
@@ -703,8 +704,8 @@ int main(int argc, char **argv)
break;
case 'L':
eval++;
- search_value = strdup(optarg);
- search_type = strdup("LABEL");
+ search_value = xstrdup(optarg);
+ search_type = xstrdup("LABEL");
break;
case 'n':
fltr_type = list_to_types(optarg, &fltr_flag);
@@ -714,8 +715,8 @@ int main(int argc, char **argv)
break;
case 'U':
eval++;
- search_value = strdup(optarg);
- search_type = strdup("UUID");
+ search_value = xstrdup(optarg);
+ search_type = xstrdup("UUID");
break;
case 'i':
lowprobe |= LOWPROBE_TOPOLOGY;