summaryrefslogtreecommitdiff
path: root/usr.bin/mg/undo.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-12-20 05:04:29 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-12-20 05:04:29 +0000
commitc226a1a5746a6ef88d5315d2c1060b2004d48c7d (patch)
treefad9060e84b9806d614abb0ca368a09393900e26 /usr.bin/mg/undo.c
parentbfe486f003f4f00794a1eaa74f748459b856f2b2 (diff)
Do some delinting of strl-type functions. Also, remove a superfluous
word in the undo-list.
Diffstat (limited to 'usr.bin/mg/undo.c')
-rw-r--r--usr.bin/mg/undo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/mg/undo.c b/usr.bin/mg/undo.c
index 15ccb15a35b..b6600d441e9 100644
--- a/usr.bin/mg/undo.c
+++ b/usr.bin/mg/undo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: undo.c,v 1.37 2005/12/13 07:20:13 kjell Exp $ */
+/* $OpenBSD: undo.c,v 1.38 2005/12/20 05:04:28 kjell Exp $ */
/*
* Copyright (c) 2002 Vincent Labrecque <vincent@openbsd.org>
* All rights reserved.
@@ -371,18 +371,18 @@ undo_dump(int f, int n)
rec = LIST_NEXT(rec, next)) {
num++;
snprintf(buf, sizeof(buf),
- "Record %d =>\t %s at %d ", num,
+ "%d:\t %s at %d ", num,
(rec->type == DELETE) ? "DELETE":
(rec->type == INSERT) ? "INSERT":
(rec->type == BOUNDARY) ? "----" : "UNKNOWN",
rec->pos);
if (rec->content) {
- strlcat(buf, "\"", sizeof(buf));
+ (void)strlcat(buf, "\"", sizeof(buf));
snprintf(tmp, sizeof(tmp), "%.*s", rec->region.r_size,
rec->content);
- strlcat(buf, tmp, sizeof(buf));
- strlcat(buf, "\"", sizeof(buf));
+ (void)strlcat(buf, tmp, sizeof(buf));
+ (void)strlcat(buf, "\"", sizeof(buf));
}
snprintf(tmp, sizeof(tmp), " [%d]", rec->region.r_size);
if (strlcat(buf, tmp, sizeof(buf)) >= sizeof(buf)) {