summaryrefslogtreecommitdiffstats
path: root/sbin/atm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-30 14:56:25 +0000
committerharti <harti@FreeBSD.org>2003-07-30 14:56:25 +0000
commit0d4bdece5959fd4db7d5e7acddb36a15dc963ea7 (patch)
treeb839716e674f24f1beebf0d2fa3bf213b54569fb /sbin/atm
parent620a1cc125c333f8911ffaff3e1d61c4ae7af2f6 (diff)
downloadFreeBSD-src-0d4bdece5959fd4db7d5e7acddb36a15dc963ea7.zip
FreeBSD-src-0d4bdece5959fd4db7d5e7acddb36a15dc963ea7.tar.gz
Fix warnings: a variable that was unused, a variable that
was unused unless sun was defined and printing of u_longs with %x. PR: bin/39818 Submitted by: dan@obluda.cz MFC after: 1 week
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/fore_dnld/fore_dnld.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/atm/fore_dnld/fore_dnld.c b/sbin/atm/fore_dnld/fore_dnld.c
index aefb304..8815250 100644
--- a/sbin/atm/fore_dnld/fore_dnld.c
+++ b/sbin/atm/fore_dnld/fore_dnld.c
@@ -684,9 +684,8 @@ u_char *ram;
u_long w;
char c[4];
} w1, w2;
-#endif
int n;
- int cnt = 0;
+#endif
u_char *bufp;
u_long *lp;
@@ -1338,7 +1337,7 @@ char *argv[];
hb3 = CP_READ(Mon->mon_bstat);
if (hb3 != BOOT_RUNNING) {
if (verbose)
- printf("bstat %x\n", hb3);
+ printf("bstat %lx\n", hb3);
continue;
}
@@ -1346,7 +1345,7 @@ char *argv[];
delay(1);
hb2 = CP_READ(aap->aali_heartbeat);
if (verbose)
- printf("hb %x %x\n", hb1, hb2);
+ printf("hb %lx %lx\n", hb1, hb2);
if (hb1 < hb2)
break;
}
OpenPOWER on IntegriCloud