diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-20 07:35:05 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-20 07:35:05 +0000 |
commit | 3f5118d1b5f69dcad164c6c832aea965bda6521e (patch) | |
tree | a8f015bb6f1ca067d02b2da467b9c61861f8626d /lib | |
parent | 2bcfdb7b9e293be149714b1668edc3bda1b0bd75 (diff) |
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 2a932a125d5..5639ac212db 100644 --- a/lib/libtermlib/vidputs.c +++ b/lib/libtermlib/vidputs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vidputs.c,v 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 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; } |