Module Name: src
Committed By: roy
Date: Fri Jan 6 14:06:45 UTC 2017
Modified Files:
src/lib/libcurses: addbytes.c
Log Message:
KNF
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/lib/libcurses/addbytes.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libcurses/addbytes.c
diff -u src/lib/libcurses/addbytes.c:1.45 src/lib/libcurses/addbytes.c:1.46
--- src/lib/libcurses/addbytes.c:1.45 Mon Jan 2 10:28:34 2017
+++ src/lib/libcurses/addbytes.c Fri Jan 6 14:06:45 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: addbytes.c,v 1.45 2017/01/02 10:28:34 roy Exp $ */
+/* $NetBSD: addbytes.c,v 1.46 2017/01/06 14:06:45 roy Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
#else
-__RCSID("$NetBSD: addbytes.c,v 1.45 2017/01/02 10:28:34 roy Exp $");
+__RCSID("$NetBSD: addbytes.c,v 1.46 2017/01/06 14:06:45 roy Exp $");
#endif
#endif /* not lint */
@@ -60,6 +60,7 @@ __RCSID("$NetBSD: addbytes.c,v 1.45 2017
int
addbytes(const char *bytes, int count)
{
+
return _cursesi_waddbytes(stdscr, bytes, count, 0, 1);
}
@@ -70,6 +71,7 @@ addbytes(const char *bytes, int count)
int
waddbytes(WINDOW *win, const char *bytes, int count)
{
+
return _cursesi_waddbytes(win, bytes, count, 0, 1);
}
@@ -80,6 +82,7 @@ waddbytes(WINDOW *win, const char *bytes
int
mvaddbytes(int y, int x, const char *bytes, int count)
{
+
return mvwaddbytes(stdscr, y, x, bytes, count);
}
@@ -90,6 +93,7 @@ mvaddbytes(int y, int x, const char *byt
int
mvwaddbytes(WINDOW *win, int y, int x, const char *bytes, int count)
{
+
if (wmove(win, y, x) == ERR)
return ERR;
@@ -101,6 +105,7 @@ mvwaddbytes(WINDOW *win, int y, int x, c
int
__waddbytes(WINDOW *win, const char *bytes, int count, attr_t attr)
{
+
return _cursesi_waddbytes(win, bytes, count, attr, 1);
}