mirror of
https://github.com/openbsd/src.git
synced 2025-01-03 06:45:37 -08:00
Style fixes; from Ilya Kaliman
This commit is contained in:
parent
2c9697c487
commit
dc548fa222
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: main.c,v 1.53 2015/10/09 21:24:05 tobias Exp $ */
|
||||
/* $OpenBSD: main.c,v 1.54 2015/10/21 16:06:57 millert Exp $ */
|
||||
/* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */
|
||||
|
||||
/* main.c: This file contains the main control and user-interface routines
|
||||
@ -174,7 +174,7 @@ top:
|
||||
signal(SIGHUP, signal_hup);
|
||||
signal(SIGQUIT, SIG_IGN);
|
||||
signal(SIGINT, signal_int);
|
||||
if (status = sigsetjmp(env, 1)) {
|
||||
if ((status = sigsetjmp(env, 1))) {
|
||||
fputs("\n?\n", stderr);
|
||||
seterrmsg("interrupt");
|
||||
} else {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: co.c,v 1.121 2015/06/13 20:15:21 nicm Exp $ */
|
||||
/* $OpenBSD: co.c,v 1.122 2015/10/21 16:06:57 millert Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
|
||||
* All rights reserved.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: who.c,v 1.26 2015/10/12 19:56:47 naddy Exp $ */
|
||||
/* $OpenBSD: who.c,v 1.27 2015/10/21 16:06:57 millert Exp $ */
|
||||
/* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -77,7 +77,7 @@ main(int argc, char *argv[])
|
||||
if (pledge("stdio rpath getpw", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
if (mytty = ttyname(0)) {
|
||||
if ((mytty = ttyname(0))) {
|
||||
/* strip any directory component */
|
||||
if ((t = strrchr(mytty, '/')))
|
||||
mytty = t + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user