diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-17 19:39:21 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-17 19:39:21 +0000 |
commit | 6a8ab3d78c1ca5638191dddc702dca808451f029 (patch) | |
tree | b2ea05a763d6bbaed20eae681d3fd305cb0e37a0 /sbin/pdisk/dump.c | |
parent | ff8fd7eba7ea4fe90f1132a0ce39b7cee592d14c (diff) |
Reduce namespace pollution by eliminating parameter names from forward
declarations.
Diffstat (limited to 'sbin/pdisk/dump.c')
-rw-r--r-- | sbin/pdisk/dump.c | 41 |
1 files changed, 7 insertions, 34 deletions
diff --git a/sbin/pdisk/dump.c b/sbin/pdisk/dump.c index acd37304e21..cc7f16887ed 100644 --- a/sbin/pdisk/dump.c +++ b/sbin/pdisk/dump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dump.c,v 1.32 2016/01/17 19:15:55 krw Exp $ */ +/* $OpenBSD: dump.c,v 1.33 2016/01/17 19:39:20 krw Exp $ */ // // dump.c - dumping partition maps @@ -41,17 +41,8 @@ #include "dump.h" #include "io.h" - -// -// Defines -// #define get_align_long(x) (*(x)) - -// -// Types -// - struct patchdescriptor { unsigned long patchSig; unsigned short majorVers; @@ -71,34 +62,16 @@ struct patchlist { struct patchdescriptor thePatch[1]; }; - -// -// Global Constants -// - const char * kStringEmpty = ""; const char * kStringNot = " not"; +void adjust_value_and_compute_prefix(double *, int *); +void dump_block_zero(struct partition_map_header *); +void dump_partition_entry(struct partition_map *, int, int, int); +int get_max_base_or_length(struct partition_map_header *); +int get_max_name_string_length(struct partition_map_header *); +int get_max_type_string_length(struct partition_map_header *); -// -// Global Variables -// - - -// -// Forward declarations -// -void adjust_value_and_compute_prefix(double *value, int *prefix); -void dump_block_zero(struct partition_map_header *map); -void dump_partition_entry(struct partition_map *entry, int type_length, int name_length, int digits); -int get_max_base_or_length(struct partition_map_header *map); -int get_max_name_string_length(struct partition_map_header *map); -int get_max_type_string_length(struct partition_map_header *map); - - -// -// Routines -// int dump(char *name) { |