summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-04-05 08:40:49 +1000
committerNeilBrown <neilb@suse.de>2011-04-05 08:40:49 +1000
commit32367cb5588be10b25c11a69795d18b9af9d2f8c (patch)
tree4c3915c20dee26b54d2f6a6a999a0f13dc63735c /util.c
parent679eb882fc243bfeb6a2586ded92bf5331096a3d (diff)
downloadmdadm-32367cb5588be10b25c11a69795d18b9af9d2f8c.tar.gz
split name/number maps into separate file.
This reduced some interdependencies between files. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r--util.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/util.c b/util.c
index e0671eb..45e6873 100644
--- a/util.c
+++ b/util.c
@@ -566,27 +566,6 @@ int ask(char *mesg)
}
#endif /* MDASSEMBLE */
-char *map_num(mapping_t *map, int num)
-{
- while (map->name) {
- if (map->num == num)
- return map->name;
- map++;
- }
- return NULL;
-}
-
-int map_name(mapping_t *map, char *name)
-{
- while (map->name) {
- if (strcmp(map->name, name)==0)
- return map->num;
- map++;
- }
- return UnSet;
-}
-
-
int is_standard(char *dev, int *nump)
{
/* tests if dev is a "standard" md dev name.