Page MenuHomeFreeBSD

D29381.diff
No OneTemporary

D29381.diff

diff --git a/usr.bin/ktrdump/Makefile b/usr.bin/ktrdump/Makefile
--- a/usr.bin/ktrdump/Makefile
+++ b/usr.bin/ktrdump/Makefile
@@ -4,6 +4,4 @@
LIBADD= kvm
MAN= ktrdump.8
-WARNS?= 2
-
.include <bsd.prog.mk>
diff --git a/usr.bin/ktrdump/ktrdump.c b/usr.bin/ktrdump/ktrdump.c
--- a/usr.bin/ktrdump/ktrdump.c
+++ b/usr.bin/ktrdump/ktrdump.c
@@ -56,11 +56,11 @@
static void usage(void);
static struct nlist nl[] = {
- { "_ktr_version" },
- { "_ktr_entries" },
- { "_ktr_idx" },
- { "_ktr_buf" },
- { NULL }
+ { .n_name = "_ktr_version" },
+ { .n_name = "_ktr_entries" },
+ { .n_name = "_ktr_idx" },
+ { .n_name = "_ktr_buf" },
+ { .n_name = NULL }
};
static int cflag;
@@ -262,7 +262,7 @@
fprintf(out, "\n");
}
- tlast = -1;
+ tlast = UINTPTR_MAX;
/*
* Now tear through the trace buffer.
*
@@ -327,7 +327,7 @@
if (tflag) {
tnow = (uintmax_t)buf[i].ktr_timestamp;
if (rflag) {
- if (tlast == -1)
+ if (tlast == UINTPTR_MAX)
tlast = tnow;
fprintf(out, "%16ju ", !iflag ? tlast - tnow :
tnow - tlast);

File Metadata

Mime Type
text/plain
Expires
Sat, May 3, 6:53 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17926797
Default Alt Text
D29381.diff (1 KB)

Event Timeline