Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Make __CTRACE_init() static and ANSIfy its def...



details:   https://anonhg.NetBSD.org/src/rev/9a2358922d8e
branches:  trunk
changeset: 836645:9a2358922d8e
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Oct 29 00:25:20 2018 +0000

description:
Make __CTRACE_init() static and ANSIfy its definition.

diffstat:

 lib/libcurses/ctrace.c         |  8 ++++----
 lib/libcurses/curses_private.h |  3 +--
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 933bc266c0e6 -r 9a2358922d8e lib/libcurses/ctrace.c
--- a/lib/libcurses/ctrace.c    Mon Oct 29 00:14:37 2018 +0000
+++ b/lib/libcurses/ctrace.c    Mon Oct 29 00:25:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ctrace.c,v 1.21 2017/01/06 13:53:18 roy Exp $  */
+/*     $NetBSD: ctrace.c,v 1.22 2018/10/29 00:25:20 uwe Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)ctrace.c   8.2 (Berkeley) 10/5/93";
 #else
-__RCSID("$NetBSD: ctrace.c,v 1.21 2017/01/06 13:53:18 roy Exp $");
+__RCSID("$NetBSD: ctrace.c,v 1.22 2018/10/29 00:25:20 uwe Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -55,8 +55,8 @@
 
 static int init_done = 0;
 
-void
-__CTRACE_init()
+static void
+__CTRACE_init(void)
 {
        char *tf, *tm;
 
diff -r 933bc266c0e6 -r 9a2358922d8e lib/libcurses/curses_private.h
--- a/lib/libcurses/curses_private.h    Mon Oct 29 00:14:37 2018 +0000
+++ b/lib/libcurses/curses_private.h    Mon Oct 29 00:25:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses_private.h,v 1.66 2018/10/04 18:40:41 roy Exp $  */
+/*     $NetBSD: curses_private.h,v 1.67 2018/10/29 00:25:20 uwe Exp $  */
 
 /*-
  * Copyright (c) 1998-2000 Brett Lymn
@@ -332,7 +332,6 @@
 #define __CTRACE_ERASE         0x00000800
 #define __CTRACE_FILEIO                0x00001000
 #define __CTRACE_ALL           0x7fffffff
-void    __CTRACE_init(void);
 void    __CTRACE(int, const char *, ...) __attribute__((__format__(__printf__, 2, 3)));
 #endif
 



Home | Main Index | Thread Index | Old Index