Date: Tue, 14 Sep 2010 16:22:22 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212615 - head/sbin/geom/core Message-ID: <201009141622.o8EGMMRP086323@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Tue Sep 14 16:22:22 2010 New Revision: 212615 URL: http://svn.freebsd.org/changeset/base/212615 Log: Remove now unused G_TYPE_ASCNUM. Modified: head/sbin/geom/core/geom.c head/sbin/geom/core/geom.h Modified: head/sbin/geom/core/geom.c ============================================================================== --- head/sbin/geom/core/geom.c Tue Sep 14 16:21:13 2010 (r212614) +++ head/sbin/geom/core/geom.c Tue Sep 14 16:22:22 2010 (r212615) @@ -259,8 +259,7 @@ set_option(struct gctl_req *req, struct 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); Modified: head/sbin/geom/core/geom.h ============================================================================== --- head/sbin/geom/core/geom.h Tue Sep 14 16:21:13 2010 (r212614) +++ head/sbin/geom/core/geom.h Tue Sep 14 16:22:22 2010 (r212615) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009141622.o8EGMMRP086323>