Turned some #define constants into static const ints.
authorMark Whitley <markw@lineo.com>
Fri, 5 Jan 2001 18:19:30 +0000 (18:19 -0000)
committerMark Whitley <markw@lineo.com>
Fri, 5 Jan 2001 18:19:30 +0000 (18:19 -0000)
coreutils/tail.c
tail.c

index 8e64889..dc5918d 100644 (file)
@@ -39,8 +39,8 @@ static struct suffix_mult null_suffixes[] = {
 };
 #endif
 
-#define BYTES 0
-#define LINES 1
+static const int BYTES = 0;
+static const int LINES = 1;
 
 static char *tailbuf;
 static int taillen;
diff --git a/tail.c b/tail.c
index 8e64889..dc5918d 100644 (file)
--- a/tail.c
+++ b/tail.c
@@ -39,8 +39,8 @@ static struct suffix_mult null_suffixes[] = {
 };
 #endif
 
-#define BYTES 0
-#define LINES 1
+static const int BYTES = 0;
+static const int LINES = 1;
 
 static char *tailbuf;
 static int taillen;