summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-05-15 14:31:13 +0000
committerchristos <christos@NetBSD.org>2011-05-15 14:31:13 +0000
commit6bd62f9513e92e7dddd23ff49799cefff8a67e72 (patch)
tree1e9b56fcac92a5d9c867760d234af19c9fbddeed /gnu
parent64109723d2d66db416a89224e6abd0e31898b900 (diff)
register c -> int c
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/rcs/lib/rcsedit.c9
-rw-r--r--gnu/usr.bin/rcs/lib/rcslex.c13
-rw-r--r--gnu/usr.bin/rcs/rcs/rcs.c11
-rw-r--r--gnu/usr.bin/rcs/rcsdiff/rcsdiff.c7
-rw-r--r--gnu/usr.bin/rcs/rlog/rlog.c7
5 files changed, 31 insertions, 16 deletions
diff --git a/gnu/usr.bin/rcs/lib/rcsedit.c b/gnu/usr.bin/rcs/lib/rcsedit.c
index 5ba0699a0b8..8bd807b2b3e 100644
--- a/gnu/usr.bin/rcs/lib/rcsedit.c
+++ b/gnu/usr.bin/rcs/lib/rcsedit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rcsedit.c,v 1.8 1997/03/25 13:56:38 lukem Exp $ */
+/* $NetBSD: rcsedit.c,v 1.9 2011/05/15 14:31:13 christos Exp $ */
/* RCS stream editor */
@@ -38,6 +38,9 @@ Report problems and direct all questions to:
/*
* $Log: rcsedit.c,v $
+ * Revision 1.9 2011/05/15 14:31:13 christos
+ * register c -> int c
+ *
* Revision 1.8 1997/03/25 13:56:38 lukem
* Add "#define has_mkstemp 1" (which needs "#define has_mktemp 1"),
* and hack to use mkstemp() instead of mktemp(). This *does* cause the
@@ -633,7 +636,7 @@ copystring()
* editline is incremented by the number of lines copied.
* Assumption: next character read is first string character.
*/
-{ register c;
+{ int c;
declarecache;
register FILE *frew, *fcop;
register int amidline;
@@ -878,7 +881,7 @@ expandline(infile, outfile, delta, delimstuffed, frewfile, dolog)
* 2 if a complete line is copied; adds 1 to yield if expansion occurred.
*/
{
- register c;
+ int c;
declarecache;
register FILE *out, *frew;
register char * tp;
diff --git a/gnu/usr.bin/rcs/lib/rcslex.c b/gnu/usr.bin/rcs/lib/rcslex.c
index ead5f1528bb..491b4978892 100644
--- a/gnu/usr.bin/rcs/lib/rcslex.c
+++ b/gnu/usr.bin/rcs/lib/rcslex.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rcslex.c,v 1.6 1998/02/20 09:27:19 mycroft Exp $ */
+/* $NetBSD: rcslex.c,v 1.7 2011/05/15 14:33:12 christos Exp $ */
/* lexical analysis of RCS files */
@@ -42,6 +42,9 @@ Report problems and direct all questions to:
/*
* $Log: rcslex.c,v $
+ * Revision 1.7 2011/05/15 14:33:12 christos
+ * register c -> int c
+ *
* Revision 1.6 1998/02/20 09:27:19 mycroft
* Fill in missing (default) mmap(2) flags.
*
@@ -314,7 +317,7 @@ nextlex()
* For ID's and NUM's, NextString is set to the character string.
* Assumption: nextc contains the next character.
*/
-{ register c;
+{ int c;
declarecache;
register FILE *frew;
register char * sp;
@@ -679,7 +682,7 @@ readstring()
/* skip over characters until terminating single SDELIM */
/* If foutptr is set, copy every character read to foutptr. */
/* Does not advance nextlex at the end. */
-{ register c;
+{ int c;
declarecache;
register FILE *frew;
register RILE *fin;
@@ -712,7 +715,7 @@ printstring()
* Does not advance nextlex at the end.
*/
{
- register c;
+ int c;
declarecache;
register FILE *fout;
register RILE *fin;
@@ -750,7 +753,7 @@ savestring(target)
* Yield a copy of *TARGET, except with exact length.
*/
{
- register c;
+ int c;
declarecache;
register FILE *frew;
register char *tp;
diff --git a/gnu/usr.bin/rcs/rcs/rcs.c b/gnu/usr.bin/rcs/rcs/rcs.c
index ae0de4e6017..310568102bc 100644
--- a/gnu/usr.bin/rcs/rcs/rcs.c
+++ b/gnu/usr.bin/rcs/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rcs.c,v 1.5 2006/03/26 22:35:07 christos Exp $ */
+/* $NetBSD: rcs.c,v 1.6 2011/05/15 14:33:12 christos Exp $ */
/* Change RCS file attributes. */
@@ -31,6 +31,9 @@ Report problems and direct all questions to:
/*
* $Log: rcs.c,v $
+ * Revision 1.6 2011/05/15 14:33:12 christos
+ * register c -> int c
+ *
* Revision 1.5 2006/03/26 22:35:07 christos
* Coverity CID 927: Check for NULL before de-referencing.
*
@@ -736,8 +739,8 @@ getaccessor(opt, command)
{
- register c;
- register char *sp;
+ int c;
+ char *sp;
sp = opt;
while ((c = *++sp) == ' ' || c == '\n' || c == '\t' || c == ',')
@@ -796,7 +799,7 @@ char *sp;
{
char const *temp;
struct Status *pt;
- register c;
+ int c;
while ((c = *++sp) ==' ' || c == '\t' || c == '\n')
continue;
diff --git a/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c b/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c
index 40a17395348..fac58926872 100644
--- a/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c
+++ b/gnu/usr.bin/rcs/rcsdiff/rcsdiff.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rcsdiff.c,v 1.6 2009/11/06 22:02:35 enami Exp $ */
+/* $NetBSD: rcsdiff.c,v 1.7 2011/05/15 14:33:12 christos Exp $ */
/* Compare RCS revisions. */
@@ -31,6 +31,9 @@ Report problems and direct all questions to:
/*
* $Log: rcsdiff.c,v $
+ * Revision 1.7 2011/05/15 14:33:12 christos
+ * register c -> int c
+ *
* Revision 1.6 2009/11/06 22:02:35 enami
* Accept -U num. Nowadays, diff(1) rejects -u0 etc by default.
*
@@ -190,7 +193,7 @@ mainProg(rcsdiffId, "rcsdiff", "Id: rcsdiff.c,v 5.19 1995/06/16 06:19:24 eggert
struct hshentry * target;
char *a, *dcp, **newargv;
int no_diff_means_no_output;
- register c;
+ int c;
exitstatus = DIFF_SUCCESS;
diff --git a/gnu/usr.bin/rcs/rlog/rlog.c b/gnu/usr.bin/rcs/rlog/rlog.c
index 1246c6dd273..7e29005f3a1 100644
--- a/gnu/usr.bin/rcs/rlog/rlog.c
+++ b/gnu/usr.bin/rcs/rlog/rlog.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rlog.c,v 1.4 1996/10/15 07:00:50 veego Exp $ */
+/* $NetBSD: rlog.c,v 1.5 2011/05/15 14:33:12 christos Exp $ */
/* Print log messages and other information about RCS files. */
@@ -31,6 +31,9 @@ Report problems and direct all questions to:
/*
* $Log: rlog.c,v $
+ * Revision 1.5 2011/05/15 14:33:12 christos
+ * register c -> int c
+ *
* Revision 1.4 1996/10/15 07:00:50 veego
* Merge rcs 5.7.
*
@@ -776,7 +779,7 @@ char *argv;
/* and store in authorlist */
{
- register c;
+ int c;
struct authors * newauthor;
argv--;