diff options
author | 2001-01-28 00:56:07 +0000 | |
---|---|---|
committer | 2001-01-28 00:56:07 +0000 | |
commit | 78b4f67277a4c370b7b993a156cb43c43b5befeb (patch) | |
tree | 383e2f48d0edc8354cddc3a7daebf65498eb94a1 | |
parent | Quick -Wall fixes, ok niklas@, aaron@ (diff) | |
download | wireguard-openbsd-78b4f67277a4c370b7b993a156cb43c43b5befeb.tar.xz wireguard-openbsd-78b4f67277a4c370b7b993a156cb43c43b5befeb.zip |
More -Wall cleanup. Ansi style nit.
-rw-r--r-- | sbin/fdisk/cmd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c index 2bbfbfe9230..470b0128a98 100644 --- a/sbin/fdisk/cmd.c +++ b/sbin/fdisk/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.27 2001/01/01 21:05:33 angelos Exp $ */ +/* $OpenBSD: cmd.c,v 1.28 2001/01/28 00:56:07 weingart Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -240,7 +240,7 @@ Xselect(cmd, disk, mbr, tt, offset) mbr_t *tt; int offset; { - static firstoff = 0; + static int firstoff = 0; int off; int pn; @@ -428,10 +428,11 @@ Xmanual(cmd, disk, mbr, tt, offset) { char *pager = "/usr/bin/less"; char *p; - sig_t opipe = signal(SIGPIPE, SIG_IGN); + sig_t opipe; extern char manpage[]; FILE *f; + opipe = signal(SIGPIPE, SIG_IGN); if ((p = getenv("PAGER")) != NULL && (*p != '\0')) pager = p; f = popen(pager, "w"); @@ -443,3 +444,4 @@ Xmanual(cmd, disk, mbr, tt, offset) (void)signal(SIGPIPE, opipe); return (CMD_CONT); } + |