diff options
author | Petr Uzel | 2012-07-12 11:47:19 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-16 18:09:22 +0200 |
commit | da4ea9f54bc10507475db6ea1d3486de4bef4f7f (patch) | |
tree | a54f6f6fefdfbf269f652d601f0ec388d3ca4a32 /fdisks/fdiskdoslabel.c | |
parent | fdisk: don't call update_units() in label probes if not necessary (diff) | |
download | kernel-qcow2-util-linux-da4ea9f54bc10507475db6ea1d3486de4bef4f7f.tar.gz kernel-qcow2-util-linux-da4ea9f54bc10507475db6ea1d3486de4bef4f7f.tar.xz kernel-qcow2-util-linux-da4ea9f54bc10507475db6ea1d3486de4bef4f7f.zip |
fdisk: rename label probing functions
Rename check_$foo_label() to $foo_probe_label():
1/ 'probe' is more appropriate verb than 'check' for these functions
2/ making label name first part of the funciton name is IMO more
friendly for tags completion (e.g. vim + cscope/ctags).
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r-- | fdisks/fdiskdoslabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c index 27536da38..a115e6615 100644 --- a/fdisks/fdiskdoslabel.c +++ b/fdisks/fdiskdoslabel.c @@ -316,7 +316,7 @@ void dos_delete_partition(int i) } } -static int check_dos_label(struct fdisk_context *cxt) +static int dos_probe_label(struct fdisk_context *cxt) { int i; @@ -684,5 +684,5 @@ void dos_write_table(struct fdisk_context *cxt) const struct fdisk_label dos_label = { .name = "dos", - .probe = check_dos_label, + .probe = dos_probe_label, }; |