diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 2001-01-28 00:56:08 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 2001-01-28 00:56:08 +0000 |
commit | ae3ea535ed1bb0f49942065ed801103307d3efaf (patch) | |
tree | 6c67bac0cddce1f1d89133adb48b9c8b382f3759 /sbin/fdisk/cmd.c | |
parent | 29d8fc493c7d84fae0530a2090209d7d2228d15c (diff) |
More -Wall cleanup. Ansi style nit.
Diffstat (limited to 'sbin/fdisk/cmd.c')
-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); } + |