diff options
author | Karel Zak | 2012-11-30 10:56:54 +0100 |
---|---|---|
committer | Karel Zak | 2012-11-30 10:56:54 +0100 |
commit | e0a9b8cf2d7a2f0264332fbc870341103840ed06 (patch) | |
tree | f90a7e6230176b90ee4448a994b0c1dd5d489646 /libblkid/src/devname.c | |
parent | libblkid: add function attributes to private API (diff) | |
download | kernel-qcow2-util-linux-e0a9b8cf2d7a2f0264332fbc870341103840ed06.tar.gz kernel-qcow2-util-linux-e0a9b8cf2d7a2f0264332fbc870341103840ed06.tar.xz kernel-qcow2-util-linux-e0a9b8cf2d7a2f0264332fbc870341103840ed06.zip |
libblkid: remove blkid_{strndup,strdup}
Don't try to be smart. Let's use standard libc functions. (Note that
we have fallback for strndup() in include/strutils.h)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/devname.c')
-rw-r--r-- | libblkid/src/devname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libblkid/src/devname.c b/libblkid/src/devname.c index 17a9e5070..95f1d7ec9 100644 --- a/libblkid/src/devname.c +++ b/libblkid/src/devname.c @@ -73,7 +73,7 @@ blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, int flags) if (!dev) return NULL; dev->bid_time = INT_MIN; - dev->bid_name = blkid_strdup(devname); + dev->bid_name = strdup(devname); dev->bid_cache = cache; list_add_tail(&dev->bid_devs, &cache->bic_devs); cache->bic_flags |= BLKID_BIC_FL_CHANGED; @@ -208,7 +208,7 @@ static void probe_one(blkid_cache cache, const char *ptname, (S_ISBLK(st.st_mode) || (S_ISCHR(st.st_mode) && !strncmp(ptname, "ubi", 3))) && st.st_rdev == devno) { - devname = blkid_strdup(device); + devname = strdup(device); goto get_dev; } } |