ref: 08292c8f1fb3c122e92ed13d8c107009c919ada1
parent: 45e71cb72869a4adbff53154a2f6c75d7b404a1d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Oct 9 02:08:48 EDT 2018
ndb/dns: fix format print warning for procsetname(), cleanup
--- a/sys/src/cmd/ndb/dns.h
+++ b/sys/src/cmd/ndb/dns.h
@@ -423,7 +423,6 @@
extern Area *owned;
extern int sendnotifies;
extern ulong target;
-extern int testing; /* test cache whenever removing a DN */
extern char *trace;
extern int traceactivity;
extern char *zonerefreshprogram;
--- a/sys/src/cmd/ndb/dnsdebug.c
+++ b/sys/src/cmd/ndb/dnsdebug.c
@@ -23,7 +23,6 @@
int needrefresh;
ulong now;
vlong nowns;
-int testing;
char *trace;
int traceactivity;
char *zonerefreshprogram;
--- a/sys/src/cmd/ndb/dnsgetip.c
+++ b/sys/src/cmd/ndb/dnsgetip.c
@@ -14,7 +14,6 @@
int needrefresh = 0;
ulong now = 0;
vlong nowns = 0;
-int testing = 0;
int traceactivity = 0;
char *zonerefreshprogram;
--- a/sys/src/cmd/ndb/dnudpserver.c
+++ b/sys/src/cmd/ndb/dnudpserver.c
@@ -171,7 +171,7 @@
/* loop on requests */
for(;; putactivity(0)){
- procsetname("served %d udp; %d alarms",
+ procsetname("served %lud udp; %lud alarms",
stats.qrecvdudp, stats.alarms);
memset(&repmsg, 0, sizeof repmsg);
memset(&reqmsg, 0, sizeof reqmsg);