diff options
author | 1996-07-20 07:35:04 +0000 | |
---|---|---|
committer | 1996-07-20 07:35:04 +0000 | |
commit | 3f19ad3fe0ceb34655ef4dc755c19f3764ba1f17 (patch) | |
tree | 01bf2837021fa02b94cac84b4c962236f493faac /lib | |
parent | bcopy->memcpy & tag (diff) | |
download | wireguard-openbsd-3f19ad3fe0ceb34655ef4dc755c19f3764ba1f17.tar.xz wireguard-openbsd-3f19ad3fe0ceb34655ef4dc755c19f3764ba1f17.zip |
Correct return value
Store attributes so comparing with them works when attributes change
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtermlib/vidputs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libtermlib/vidputs.c b/lib/libtermlib/vidputs.c index a07dcde8d5f..5639ac212db 100644 --- a/lib/libtermlib/vidputs.c +++ b/lib/libtermlib/vidputs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vidputs.c,v 1.1.1.1 1996/05/31 05:40:02 tholo Exp $ */ +/* $OpenBSD: vidputs.c,v 1.2 1996/07/20 07:35:04 tholo Exp $ */ /* * Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: vidputs.c,v 1.1.1.1 1996/05/31 05:40:02 tholo Exp $"; +static char rcsid[] = "$OpenBSD: vidputs.c,v 1.2 1996/07/20 07:35:04 tholo Exp $"; #endif #include <stdlib.h> @@ -122,5 +122,6 @@ vidputs(attr, outc) if ((attr_on & A_VERTICAL) && enter_vertical_hl_mode != NULL) tputs(enter_vertical_hl_mode, 1, outc); } - return ERR; + old_attr = attr; + return OK; } |