aboutsummaryrefslogtreecommitdiff
path: root/hugeadm.c
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2008-12-10 14:27:34 +0000
committerEric B Munson <ebmunson@us.ibm.com>2008-12-15 13:13:56 +0000
commit29d55128448f9031226504a37826cd966012ed42 (patch)
tree1b101a67a9ea90fb0483225115517b3d305d3523 /hugeadm.c
parent1667bb075085275d20b35b72a4ac214e4c967ce5 (diff)
downloadlibhugetlbfs-29d55128448f9031226504a37826cd966012ed42.tar.gz
hugeadm: Recognise when we reach the end of option parsing
We are not recognising when we reach the end of option parsing and reporting warnings where none are needed. For example; $ hugeadm --pool-pages-min 2MB:10 hugeadm: WARNING: unparsed option ffffffff This patch means we fall through as expected. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'hugeadm.c')
-rw-r--r--hugeadm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugeadm.c b/hugeadm.c
index f190a41..a023786 100644
--- a/hugeadm.c
+++ b/hugeadm.c
@@ -292,6 +292,8 @@ int main(int argc, char** argv)
}
}
switch (ret) {
+ case -1:
+ break;
case LONG_POOL_LIST:
pool_list();
break;