Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F116070148
D29381.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29381.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D29381: Drop WARNS for ktrdump(8)
Attached
Detach File
Event Timeline
Log In to Comment