diff options
-rw-r--r-- | sbin/mknod/mknod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index 19e8ed89b7e..88b0428fcd4 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mknod.c,v 1.7 2000/01/03 22:05:54 millert Exp $ */ +/* $OpenBSD: mknod.c,v 1.8 2000/02/28 17:03:26 millert Exp $ */ /* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mknod.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: mknod.c,v 1.7 2000/01/03 22:05:54 millert Exp $"; +static char rcsid[] = "$OpenBSD: mknod.c,v 1.8 2000/02/28 17:03:26 millert Exp $"; #endif #endif /* not lint */ @@ -153,12 +153,12 @@ domknod(argc, argv, mode) /* NOTREACHED */ } - major = (long)strtoul(argv[2], &endp, 10); + major = (long)strtoul(argv[2], &endp, 0); if (endp == argv[2] || *endp != '\0') { errx(1, "non-numeric major number."); /* NOTREACHED */ } - minor = (long)strtoul(argv[3], &endp, 10); + minor = (long)strtoul(argv[3], &endp, 0); if (endp == argv[3] || *endp != '\0') { errx(1, "non-numeric minor number."); /* NOTREACHED */ |