use strtoll instead of strsuftoll to parse -d so it can be specified
in hex with a 0x prefix
This commit is contained in:
parent
bc9906d21b
commit
daab9400b9
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: makefs.c,v 1.22 2005/08/13 01:53:01 fvdl Exp $ */
|
/* $NetBSD: makefs.c,v 1.23 2006/10/10 01:32:42 dbj Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2003 Wasabi Systems, Inc.
|
* Copyright (c) 2001-2003 Wasabi Systems, Inc.
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(__RCSID) && !defined(__lint)
|
#if defined(__RCSID) && !defined(__lint)
|
||||||
__RCSID("$NetBSD: makefs.c,v 1.22 2005/08/13 01:53:01 fvdl Exp $");
|
__RCSID("$NetBSD: makefs.c,v 1.23 2006/10/10 01:32:42 dbj Exp $");
|
||||||
#endif /* !__lint */
|
#endif /* !__lint */
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -151,8 +151,7 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'd':
|
case 'd':
|
||||||
debug =
|
debug = strtoll(optarg, NULL, 0);
|
||||||
(int)strsuftoll("debug mask", optarg, 0, UINT_MAX);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f':
|
case 'f':
|
||||||
|
|
Loading…
Reference in New Issue