Module Name: src Committed By: rillig Date: Sun Jun 13 19:17:53 UTC 2021
Modified Files: src/tests/lib/libcurses/slave: curses_commands.c curses_commands.h Log Message: tests/libcurses: unexport argument handling functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/tests/lib/libcurses/slave/curses_commands.c cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libcurses/slave/curses_commands.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libcurses/slave/curses_commands.c diff -u src/tests/lib/libcurses/slave/curses_commands.c:1.27 src/tests/lib/libcurses/slave/curses_commands.c:1.28 --- src/tests/lib/libcurses/slave/curses_commands.c:1.27 Sun Jun 13 19:13:20 2021 +++ src/tests/lib/libcurses/slave/curses_commands.c Sun Jun 13 19:17:53 2021 @@ -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 <bl...@netbsd.org> @@ -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 @@ set_int(char *arg, int *x) 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 @@ set_uint(char *arg, unsigned int *x) 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 @@ set_short(char *arg, short *x) 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 @@ set_win(char *arg, WINDOW **x) 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); Index: src/tests/lib/libcurses/slave/curses_commands.h diff -u src/tests/lib/libcurses/slave/curses_commands.h:1.7 src/tests/lib/libcurses/slave/curses_commands.h:1.8 --- src/tests/lib/libcurses/slave/curses_commands.h:1.7 Sat Feb 13 08:14:46 2021 +++ src/tests/lib/libcurses/slave/curses_commands.h Sun Jun 13 19:17:53 2021 @@ -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 <bl...@netbsd.org> @@ -36,12 +36,6 @@ struct command_def { 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 */