Remove now unused G_TYPE_ASCNUM.
This commit is contained in:
parent
8107ecf892
commit
fa5383a260
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user