summaryrefslogtreecommitdiffstats
path: root/text-utils/rev.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:33 +0100
committerKarel Zak2006-12-07 00:25:33 +0100
commit726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch)
treeabbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /text-utils/rev.c
parentImported from util-linux-2.2 tarball. (diff)
downloadkernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.gz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.xz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.zip
Imported from util-linux-2.5 tarball.
Diffstat (limited to 'text-utils/rev.c')
-rw-r--r--text-utils/rev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 9fd22e0f3..1cede0bc3 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[] = "rev.c,v 1.1.1.1 1995/02/22 19:09:19 faith Exp";
+static char rcsid[] = "$Id: rev.c,v 1.3 1995/10/07 01:32:14 faith Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -110,7 +110,7 @@ main(argc, argv)
t = p + len - 1 - (*(p+len-1)=='\r'
|| *(p+len-1)=='\n');
for ( ; t >= p; --t)
- if(strcmp(t, '\0') != 0)
+ if(strcmp(t, "\0") != 0)
putchar(*t);
#endif /* linux */
putchar('\n');