Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/tset Constify cat argument and tidy.



details:   https://anonhg.NetBSD.org/src/rev/0706b453bcb1
branches:  trunk
changeset: 751980:0706b453bcb1
user:      roy <roy%NetBSD.org@localhost>
date:      Wed Feb 10 10:33:45 2010 +0000

description:
Constify cat argument and tidy.

diffstat:

 usr.bin/tset/extern.h |   4 ++--
 usr.bin/tset/misc.c   |  16 +++++-----------
 2 files changed, 7 insertions(+), 13 deletions(-)

diffs (62 lines):

diff -r 8467cfb4e8ca -r 0706b453bcb1 usr.bin/tset/extern.h
--- a/usr.bin/tset/extern.h     Wed Feb 10 07:38:09 2010 +0000
+++ b/usr.bin/tset/extern.h     Wed Feb 10 10:33:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.12 2010/02/03 15:34:46 roy Exp $  */
+/*     $NetBSD: extern.h,v 1.13 2010/02/10 10:33:45 roy Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -35,7 +35,7 @@
 extern int ncolumns, isreset, nlines;
 
 void    add_mapping __P((const char *, char *));
-void    tset_cat __P((char *));
+void    tset_cat __P((const char *));
 const   char *get_terminfo_entry __P((const char *));
 const   char *mapped __P((const char *));
 int     outc __P((int));
diff -r 8467cfb4e8ca -r 0706b453bcb1 usr.bin/tset/misc.c
--- a/usr.bin/tset/misc.c       Wed Feb 10 07:38:09 2010 +0000
+++ b/usr.bin/tset/misc.c       Wed Feb 10 10:33:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: misc.c,v 1.8 2006/05/01 23:18:37 christos Exp $        */
+/*     $NetBSD: misc.c,v 1.9 2010/02/10 10:33:45 roy Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -30,12 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)misc.c     8.1 (Berkeley) 6/9/93";
-#endif
-__RCSID("$NetBSD: misc.c,v 1.8 2006/05/01 23:18:37 christos Exp $");
-#endif /* not lint */
+__RCSID("$NetBSD: misc.c,v 1.9 2010/02/10 10:33:45 roy Exp $");
 
 #include <err.h>
 #include <errno.h>
@@ -47,8 +42,7 @@
 #include "extern.h"
 
 void
-tset_cat(file)
-       char *file;
+tset_cat(const char *file)
 {
        register int fd, nr, nw;
        char buf[1024];
@@ -65,8 +59,8 @@
 }
 
 int
-outc(c)
-       int c;
+outc(int c)
 {
+
        return (putc(c, stderr));
 }



Home | Main Index | Thread Index | Old Index