aboutsummaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-03-24 19:17:53 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-30 16:26:33 +0200
commit41f6ae4820b7c288a6688086bd1a61687a50e3f3 (patch)
treed85cb3cee319e766cbdd8485947ba736342904c3 /utils.h
parentc7f72072bd727914bceba74a31dfbb00ffdf069f (diff)
downloadbtrfs-progs-41f6ae4820b7c288a6688086bd1a61687a50e3f3.tar.gz
btrfs-progs-41f6ae4820b7c288a6688086bd1a61687a50e3f3.tar.xz
btrfs-progs-41f6ae4820b7c288a6688086bd1a61687a50e3f3.zip
btrfs-progs: rename __strncpy__null to __strncpy_null
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.h b/utils.h
index ff5966d..9e890f9 100644
--- a/utils.h
+++ b/utils.h
@@ -160,7 +160,7 @@ int get_fs_info(char *path, struct btrfs_ioctl_fs_info_args *fi_args,
int get_label(const char *btrfs_dev, char *label);
int set_label(const char *btrfs_dev, const char *label);
-char *__strncpy__null(char *dest, const char *src, size_t n);
+char *__strncpy_null(char *dest, const char *src, size_t n);
int is_block_device(const char *file);
int is_mount_point(const char *file);
int check_arg_type(const char *input);
@@ -168,7 +168,7 @@ int open_path_or_dev_mnt(const char *path, DIR **dirstream, int verbose);
int btrfs_open_dir(const char *path, DIR **dirstream, int verbose);
u64 btrfs_device_size(int fd, struct stat *st);
/* Helper to always get proper size of the destination string */
-#define strncpy_null(dest, src) __strncpy__null(dest, src, sizeof(dest))
+#define strncpy_null(dest, src) __strncpy_null(dest, src, sizeof(dest))
int test_dev_for_mkfs(const char *file, int force_overwrite);
int get_label_mounted(const char *mount_path, char *labelp);
int get_label_unmounted(const char *dev, char *label);