Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses/slave tests/libcurses: unexport argument...



details:   https://anonhg.NetBSD.org/src/rev/0d834e95f072
branches:  trunk
changeset: 1021703:0d834e95f072
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jun 13 19:17:53 2021 +0000

description:
tests/libcurses: unexport argument handling functions

No functional change.

diffstat:

 tests/lib/libcurses/slave/curses_commands.c |  22 +++++++++++-----------
 tests/lib/libcurses/slave/curses_commands.h |   8 +-------
 2 files changed, 12 insertions(+), 18 deletions(-)

diffs (86 lines):

diff -r bccbfb3c53f0 -r 0d834e95f072 tests/lib/libcurses/slave/curses_commands.c
--- a/tests/lib/libcurses/slave/curses_commands.c       Sun Jun 13 19:13:20 2021 +0000
+++ b/tests/lib/libcurses/slave/curses_commands.c       Sun Jun 13 19:17:53 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses_commands.c,v 1.27 2021/06/13 19:13:20 rillig Exp $      */
+/*     $NetBSD: curses_commands.c,v 1.28 2021/06/13 19:17:53 rillig Exp $      */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -38,8 +38,8 @@
 #include "slave.h"
 #include "curses_commands.h"
 
-int
-set_int(char *arg, int *x)
+static int
+set_int(const char *arg, int *x)
 {
        if (sscanf(arg, "%d", x) == 0) {
                report_count(1);
@@ -50,8 +50,8 @@
        return 0;
 }
 
-int
-set_uint(char *arg, unsigned int *x)
+static int
+set_uint(const char *arg, unsigned int *x)
 {
        if (sscanf(arg, "%u", x) == 0) {
                report_count(1);
@@ -62,8 +62,8 @@
        return 0;
 }
 
-int
-set_short(char *arg, short *x)
+static int
+set_short(const char *arg, short *x)
 {
        if (sscanf(arg, "%hd", x) == 0) {
                report_count(1);
@@ -74,8 +74,8 @@
        return 0;
 }
 
-int
-set_win(char *arg, WINDOW **x)
+static int
+set_win(const char *arg, WINDOW **x)
 {
        if (sscanf(arg, "%p", x) == 0) {
                report_count(1);
@@ -86,8 +86,8 @@
        return 0;
 }
 
-int
-set_scrn(char *arg, SCREEN **x)
+static int
+set_scrn(const char *arg, SCREEN **x)
 {
        if (sscanf(arg, "%p", x) == 0) {
                report_count(1);
diff -r bccbfb3c53f0 -r 0d834e95f072 tests/lib/libcurses/slave/curses_commands.h
--- a/tests/lib/libcurses/slave/curses_commands.h       Sun Jun 13 19:13:20 2021 +0000
+++ b/tests/lib/libcurses/slave/curses_commands.h       Sun Jun 13 19:17:53 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses_commands.h,v 1.7 2021/02/13 08:14:46 rillig Exp $       */
+/*     $NetBSD: curses_commands.h,v 1.8 2021/06/13 19:17:53 rillig Exp $       */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -36,12 +36,6 @@
        void (*func)(int, char **);
 };
 
-int set_int(char *, int *);
-int set_uint(char *, unsigned int *);
-int set_short(char *, short *);
-int set_win(char *, WINDOW **);
-int set_scrn(char *, SCREEN **);
-
 /*
  * prototypes for test commands
  */



Home | Main Index | Thread Index | Old Index