summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/installboot.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-09-10 16:53:28 +0000
committermiod <miod@openbsd.org>2015-09-10 16:53:28 +0000
commit7a970b3e73b67167801ea14b824c2bcfcf448490 (patch)
tree463627fe5c81a335572f7ed326b0bd54ec5dbae2 /usr.sbin/installboot/installboot.c
parentRemove call to CRYPTO_malloc_init(), which does nothing. (diff)
downloadwireguard-openbsd-7a970b3e73b67167801ea14b824c2bcfcf448490.tar.xz
wireguard-openbsd-7a970b3e73b67167801ea14b824c2bcfcf448490.zip
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/installboot/installboot.c')
-rw-r--r--usr.sbin/installboot/installboot.c5
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();