diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-11-06 10:22:30 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-11-06 10:22:30 +0000 |
commit | ffa0ca8c090934f01ce0b62dbd1d818745a739aa (patch) | |
tree | d3605227e20cc1c217e4e7cbb65744fae463aa7b /bin/ed | |
parent | a14390fe9e9ae5805f69dc9a0d6c2455744d8234 (diff) |
fix format string
ok ray@ gilles@
Diffstat (limited to 'bin/ed')
-rw-r--r-- | bin/ed/io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ed/io.c b/bin/ed/io.c index fd9215c2885..25c43d37374 100644 --- a/bin/ed/io.c +++ b/bin/ed/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.11 2003/06/11 23:42:12 deraadt Exp $ */ +/* $OpenBSD: io.c,v 1.12 2007/11/06 10:22:29 chl Exp $ */ /* $NetBSD: io.c,v 1.2 1995/03/21 09:04:43 cgd Exp $ */ /* io.c: This file contains the i/o routines for the ed line editor */ @@ -32,7 +32,7 @@ #if 0 static char *rcsid = "@(#)io.c,v 1.1 1994/02/01 00:34:41 alm Exp"; #else -static char rcsid[] = "$OpenBSD: io.c,v 1.11 2003/06/11 23:42:12 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: io.c,v 1.12 2007/11/06 10:22:29 chl Exp $"; #endif #endif /* not lint */ @@ -61,7 +61,7 @@ read_file(char *fn, int n) seterrmsg("cannot close input file"); return ERR; } - fprintf(stderr, !scripted ? "%lu\n" : "", size); + fprintf(stderr, !scripted ? "%d\n" : "", size); return current_addr - n; } @@ -169,7 +169,7 @@ write_file(char *fn, char *mode, int n, int m) seterrmsg("cannot close output file"); return ERR; } - fprintf(stderr, !scripted ? "%lu\n" : "", size); + fprintf(stderr, !scripted ? "%d\n" : "", size); return n ? m - n + 1 : 0; } |