diff options
author | David Sterba <dsterba@suse.com> | 2016-01-14 10:29:13 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-14 11:07:10 +0100 |
commit | c26dc1ef339c373c59a7c1626bb21d64811476ee (patch) | |
tree | 3ac44d54092e4c16bba58193f42056f7ca5ade1a /btrfs.c | |
parent | 3f248d2431424e79445131514c5f558a14a2b9f2 (diff) | |
download | btrfs-progs-c26dc1ef339c373c59a7c1626bb21d64811476ee.tar.gz |
btrfs-progs: move prefixcmp to utils
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs.c')
-rw-r--r-- | btrfs.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -37,15 +37,6 @@ static inline const char *skip_prefix(const char *str, const char *prefix) return strncmp(str, prefix, len) ? NULL : str + len; } -int prefixcmp(const char *str, const char *prefix) -{ - for (; ; str++, prefix++) - if (!*prefix) - return 0; - else if (*str != *prefix) - return (unsigned char)*prefix - (unsigned char)*str; -} - static int parse_one_token(const char *arg, const struct cmd_group *grp, const struct cmd_struct **cmd_ret) { |