diff options
author | Karel Zak | 2006-12-07 00:25:34 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:34 +0100 |
commit | fd6b7a7ffc50400704beb41d5a23af5f9edb1eed (patch) | |
tree | 997c0ca2abc018369babd7da59bcd0afe492068e /text-utils/rev.c | |
parent | Imported from util-linux-2.5 tarball. (diff) | |
download | kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.gz kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.tar.xz kernel-qcow2-util-linux-fd6b7a7ffc50400704beb41d5a23af5f9edb1eed.zip |
Imported from util-linux-2.7.1 tarball.
Diffstat (limited to 'text-utils/rev.c')
-rw-r--r-- | text-utils/rev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c index 1cede0bc3..3b4e42104 100644 --- a/text-utils/rev.c +++ b/text-utils/rev.c @@ -45,7 +45,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rev.c 5.2 (Berkeley) 3/21/92";*/ -static char rcsid[] = "$Id: rev.c,v 1.3 1995/10/07 01:32:14 faith Exp $"; +static char rcsid[] = "$Id: rev.c,v 1.4 1996/07/02 20:08:07 janl Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -53,7 +53,7 @@ static char rcsid[] = "$Id: rev.c,v 1.3 1995/10/07 01:32:14 faith Exp $"; #include <stdio.h> #include <stdlib.h> #include <string.h> -#ifdef linux +#ifdef __linux__ #include <unistd.h> #endif /* linux */ @@ -66,7 +66,7 @@ main(argc, argv) char *argv[]; { register char *filename, *t; -#ifdef linux +#ifdef __linux__ char p[512]; #else /* linux */ char *p; @@ -98,7 +98,7 @@ main(argc, argv) } filename = *argv++; } -#ifndef linux +#ifndef __linux__ while (p = fgetline(fp, &len)) { t = p + len - 1; for (t = p + len - 1; t >= p; --t) |