-/* $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
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 {
-/* $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.
file->rf_path,
date ? " a date before " : "",
date ? date : "",
- author ? " and author " + (date ? 0:4 ) : "",
+ author ? " and author " + (date ? 0:4) : "",
author ? author : "",
state ? " and state " + (date || author ? 0:4) : "",
state ? state : "");
-/* $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 $ */
/*
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;