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 $ */
|
/* $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
|
/* main.c: This file contains the main control and user-interface routines
|
||||||
@ -174,7 +174,7 @@ top:
|
|||||||
signal(SIGHUP, signal_hup);
|
signal(SIGHUP, signal_hup);
|
||||||
signal(SIGQUIT, SIG_IGN);
|
signal(SIGQUIT, SIG_IGN);
|
||||||
signal(SIGINT, signal_int);
|
signal(SIGINT, signal_int);
|
||||||
if (status = sigsetjmp(env, 1)) {
|
if ((status = sigsetjmp(env, 1))) {
|
||||||
fputs("\n?\n", stderr);
|
fputs("\n?\n", stderr);
|
||||||
seterrmsg("interrupt");
|
seterrmsg("interrupt");
|
||||||
} else {
|
} 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>
|
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -515,7 +515,7 @@ checkout_err_nobranch(RCSFILE *file, const char *author, const char *date,
|
|||||||
file->rf_path,
|
file->rf_path,
|
||||||
date ? " a date before " : "",
|
date ? " a date before " : "",
|
||||||
date ? date : "",
|
date ? date : "",
|
||||||
author ? " and author " + (date ? 0:4 ) : "",
|
author ? " and author " + (date ? 0:4) : "",
|
||||||
author ? author : "",
|
author ? author : "",
|
||||||
state ? " and state " + (date || author ? 0:4) : "",
|
state ? " and state " + (date || author ? 0:4) : "",
|
||||||
state ? state : "");
|
state ? state : "");
|
||||||
|
@ -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 $ */
|
/* $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)
|
if (pledge("stdio rpath getpw", NULL) == -1)
|
||||||
err(1, "pledge");
|
err(1, "pledge");
|
||||||
|
|
||||||
if (mytty = ttyname(0)) {
|
if ((mytty = ttyname(0))) {
|
||||||
/* strip any directory component */
|
/* strip any directory component */
|
||||||
if ((t = strrchr(mytty, '/')))
|
if ((t = strrchr(mytty, '/')))
|
||||||
mytty = t + 1;
|
mytty = t + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user