Module Name: src
Committed By: rillig
Date: Sun Dec 10 15:31:53 UTC 2023
Modified Files:
src/bin/cat: cat.c
Log Message:
cat: repeat storage class 'static' for local functions
No binary change.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/bin/cat/cat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/cat/cat.c
diff -u src/bin/cat/cat.c:1.59 src/bin/cat/cat.c:1.60
--- src/bin/cat/cat.c:1.59 Thu Dec 7 20:02:07 2023
+++ src/bin/cat/cat.c Sun Dec 10 15:31:53 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: cat.c,v 1.59 2023/12/07 20:02:07 rillig Exp $ */
+/* $NetBSD: cat.c,v 1.60 2023/12/10 15:31:53 rillig Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
-__RCSID("$NetBSD: cat.c,v 1.59 2023/12/07 20:02:07 rillig Exp $");
+__RCSID("$NetBSD: cat.c,v 1.60 2023/12/10 15:31:53 rillig Exp $");
#endif
#endif /* not lint */
@@ -139,7 +139,7 @@ main(int argc, char *argv[])
return rval;
}
-void
+static void
cook_args(char **argv)
{
FILE *fp;
@@ -167,7 +167,7 @@ cook_args(char **argv)
} while (*argv);
}
-void
+static void
cook_buf(FILE *fp)
{
int ch, gobble, line, prev;
@@ -231,7 +231,7 @@ cook_buf(FILE *fp)
err(EXIT_FAILURE, "stdout");
}
-void
+static void
raw_args(char **argv)
{
int fd;
@@ -278,7 +278,7 @@ skipnomsg:
} while (*argv);
}
-void
+static void
raw_cat(int rfd)
{
static char *buf;