diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-10 16:53:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-10 16:53:29 +0000 |
commit | b002918927934d34c2abe45f852c278c3461fbe9 (patch) | |
tree | 01d1b1fe8a14e151a3f0356fefe304eae3cd9330 /usr.sbin | |
parent | 424e60e298cdeead7a3e6b6bfc711799905ac4f0 (diff) |
Assign the return value of getopt() to an int, not a char, so that options
actually work on unsigned char platforms.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/installboot/installboot.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/installboot/installboot.c b/usr.sbin/installboot/installboot.c index a3917e2554a..f4f7df05c6c 100644 --- a/usr.sbin/installboot/installboot.c +++ b/usr.sbin/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.4 2014/01/19 04:14:22 jsing Exp $ */ +/* $OpenBSD: installboot.c,v 1.5 2015/09/10 16:53:28 miod Exp $ */ /* * Copyright (c) 2012, 2013 Joel Sing <jsing@openbsd.org> @@ -49,8 +49,7 @@ int main(int argc, char **argv) { char *dev, *realdev; - int devfd; - char opt; + int devfd, opt; md_init(); |