Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/msgc It was a bad idea to call a function 'beep'.



details:   https://anonhg.NetBSD.org/src/rev/a16d40168236
branches:  trunk
changeset: 472214:a16d40168236
user:      veego <veego%NetBSD.org@localhost>
date:      Sun Apr 25 09:10:07 1999 +0000

description:
It was a bad idea to call a function 'beep'.
Rename it to msg_beep to avoid conflicts with the new curses.h.

diffstat:

 usr.bin/msgc/msg_sys.def |  8 ++++----
 usr.bin/msgc/msgc.1      |  4 ++--
 usr.bin/msgc/msgdb.c     |  4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (71 lines):

diff -r 949a09d89e9f -r a16d40168236 usr.bin/msgc/msg_sys.def
--- a/usr.bin/msgc/msg_sys.def  Sun Apr 25 07:54:01 1999 +0000
+++ b/usr.bin/msgc/msg_sys.def  Sun Apr 25 09:10:07 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_sys.def,v 1.1.1.1 1997/09/26 21:16:38 phil Exp $   */
+/*     $NetBSD: msg_sys.def,v 1.2 1999/04/25 09:10:07 veego Exp $      */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -42,7 +42,7 @@
 
 /* Routines */
 
-void beep (void)
+void msg_beep (void)
 {
        fprintf (stderr, "\a");
 }
@@ -155,14 +155,14 @@
                                        wdelch(msg_win);
                                }
                        } else
-                               beep ();
+                               msg_beep ();
                }
                else if (count < max_chars && isprint(ch)) {
                        if (do_echo)
                                waddch (msg_win, ch);
                        val[count++] = ch;
                } else
-                       beep ();
+                       msg_beep ();
                if (do_echo)
                        wrefresh(msg_win);
        }
diff -r 949a09d89e9f -r a16d40168236 usr.bin/msgc/msgc.1
--- a/usr.bin/msgc/msgc.1       Sun Apr 25 07:54:01 1999 +0000
+++ b/usr.bin/msgc/msgc.1       Sun Apr 25 09:10:07 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: msgc.1,v 1.3 1999/03/22 18:16:40 garbled Exp $
+.\"    $NetBSD: msgc.1,v 1.4 1999/04/25 09:10:07 veego Exp $
 .\"
 .\" Copyright 1997 Piermont Information Systems Inc.
 .\" All rights reserved.
@@ -48,7 +48,7 @@
 .Ft void
 .Fn msg_window "WINDOW *window" 
 .Ft void 
-.Fn beep "void"
+.Fn msg_beep "void"
 .Ft char *
 .Fn msg_string "int msg_no"
 .Ft void 
diff -r 949a09d89e9f -r a16d40168236 usr.bin/msgc/msgdb.c
--- a/usr.bin/msgc/msgdb.c      Sun Apr 25 07:54:01 1999 +0000
+++ b/usr.bin/msgc/msgdb.c      Sun Apr 25 09:10:07 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msgdb.c,v 1.2 1997/10/03 16:37:25 enami Exp $  */
+/*     $NetBSD: msgdb.c,v 1.3 1999/04/25 09:10:07 veego Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -146,7 +146,7 @@
                "#include <curses.h>\n"
                "\n"
                "/* Prototypes */\n"
-               "void beep(void);\n"
+               "void msg_beep(void);\n"
                "void msg_window(WINDOW *window);\n"
                "char *msg_string (int msg_no);\n"
                "void msg_clear(void);\n"



Home | Main Index | Thread Index | Old Index