summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskdoslabel.c
diff options
context:
space:
mode:
authorPetr Uzel2012-07-12 11:47:19 +0200
committerKarel Zak2012-07-16 18:09:22 +0200
commitda4ea9f54bc10507475db6ea1d3486de4bef4f7f (patch)
treea54f6f6fefdfbf269f652d601f0ec388d3ca4a32 /fdisks/fdiskdoslabel.c
parentfdisk: don't call update_units() in label probes if not necessary (diff)
downloadkernel-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.c4
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,
};