diff options
author | pjd <pjd@FreeBSD.org> | 2010-09-14 16:22:22 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-09-14 16:22:22 +0000 |
commit | 4922377ac7b07e14bfc34f264b3905777414c397 (patch) | |
tree | e75471a384f2698389d64bb4beb488ded3b8345a /sbin | |
parent | e87685cef90510424e84f46fc2f88517ca21cc41 (diff) | |
download | FreeBSD-src-4922377ac7b07e14bfc34f264b3905777414c397.zip FreeBSD-src-4922377ac7b07e14bfc34f264b3905777414c397.tar.gz |
Remove now unused G_TYPE_ASCNUM.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/geom/core/geom.c | 3 | ||||
-rw-r--r-- | sbin/geom/core/geom.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c index 1be9b0c..fae74a6 100644 --- a/sbin/geom/core/geom.c +++ b/sbin/geom/core/geom.c @@ -259,8 +259,7 @@ set_option(struct gctl_req *req, struct g_option *opt, const char *val) optname = opt->go_name; } - if (G_OPT_TYPE(opt) == G_TYPE_NUMBER || - G_OPT_TYPE(opt) == G_TYPE_ASCNUM) { + if (G_OPT_TYPE(opt) == G_TYPE_NUMBER) { if (expand_number(val, &number) == -1) { err(EXIT_FAILURE, "Invalid value for '%c' argument", opt->go_char); diff --git a/sbin/geom/core/geom.h b/sbin/geom/core/geom.h index a148dda..3b0a8eb 100644 --- a/sbin/geom/core/geom.h +++ b/sbin/geom/core/geom.h @@ -38,7 +38,6 @@ #define G_TYPE_BOOL 0x01 #define G_TYPE_STRING 0x02 #define G_TYPE_NUMBER 0x03 -#define G_TYPE_ASCNUM 0x04 #define G_TYPE_MASK 0x0f #define G_TYPE_DONE 0x10 #define G_TYPE_MULTI 0x20 |