From 13b2f4bf36088caf576930f4b97ccb76f6d641a2 Mon Sep 17 00:00:00 2001 From: tholo Date: Mon, 16 Sep 1996 02:41:53 +0000 Subject: [PATCH] Fix some warnings --- lib/libtermlib/globals.c | 6 +++--- lib/libtermlib/tparm.c | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/libtermlib/globals.c b/lib/libtermlib/globals.c index 7e96e9ea552..33197ce30e8 100644 --- a/lib/libtermlib/globals.c +++ b/lib/libtermlib/globals.c @@ -1,4 +1,4 @@ -/* $OpenBSD: globals.c,v 1.2 1996/08/31 02:40:30 tholo Exp $ */ +/* $OpenBSD: globals.c,v 1.3 1996/09/16 02:41:53 tholo Exp $ */ /* * Copyright (c) 1996 SigmaSoft, Th. Lockert @@ -31,13 +31,13 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: globals.c,v 1.2 1996/08/31 02:40:30 tholo Exp $"; +static char rcsid[] = "$OpenBSD: globals.c,v 1.3 1996/09/16 02:41:53 tholo Exp $"; #endif #include "term.h" TERMINAL _ti_empty = { - -1, 9600, {}, {}, "dumb", {}, { 80, 0, 24 }, {} + -1, 9600, { 0 }, { 0 }, "dumb", { 0 }, { 80, 0, 24 }, { 0 } }; TERMINAL *cur_term = &_ti_empty; diff --git a/lib/libtermlib/tparm.c b/lib/libtermlib/tparm.c index 6e163dbfd5a..a8c8d262181 100644 --- a/lib/libtermlib/tparm.c +++ b/lib/libtermlib/tparm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tparm.c,v 1.2 1996/06/02 23:47:51 tholo Exp $ */ +/* $OpenBSD: tparm.c,v 1.3 1996/09/16 02:41:53 tholo Exp $ */ /* * Copyright (c) 1996 SigmaSoft, Th. Lockert @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: tparm.c,v 1.2 1996/06/02 23:47:51 tholo Exp $"; +static char rcsid[] = "$OpenBSD: tparm.c,v 1.3 1996/09/16 02:41:53 tholo Exp $"; #endif #include @@ -345,9 +345,11 @@ tparm(va_alist) va_start(ap); str = va_arg(ap, const char *); #else + /* LINTED pointer casts may be troublesome */ va_start(ap, str); #endif p = _tparm(str, buf, ap); + /* LINTED expression has no effect */ va_end(ap); return(p); } -- 2.20.1