summaryrefslogtreecommitdiffstats
path: root/games/primes
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-30 19:10:49 +0000
committerbde <bde@FreeBSD.org>1998-06-30 19:10:49 +0000
commitcb8e733b14ce95ee791c5c30bdb635007d017c0b (patch)
tree2c07092c2d007b08c3c062b3f7ae9313d6492089 /games/primes
parentde8d2e85734bb002261ea6c0336fa6a4efa6e2f5 (diff)
downloadFreeBSD-src-cb8e733b14ce95ee791c5c30bdb635007d017c0b.zip
FreeBSD-src-cb8e733b14ce95ee791c5c30bdb635007d017c0b.tar.gz
Fixed printf format errors.
Diffstat (limited to 'games/primes')
-rw-r--r--games/primes/primes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/primes/primes.c b/games/primes/primes.c
index ceec7e0..e928885 100644
--- a/games/primes/primes.c
+++ b/games/primes/primes.c
@@ -256,7 +256,7 @@ primes(start, stop)
for (p = &prime[0], factor = prime[0];
factor < stop && p <= pr_limit; factor = *(++p)) {
if (factor >= start) {
- printf("%u\n", factor);
+ printf("%lu\n", factor);
}
}
/* return early if we are done */
@@ -319,7 +319,7 @@ primes(start, stop)
*/
for (q = table; q < tab_lim; ++q, start+=2) {
if (*q) {
- printf("%u\n", start);
+ printf("%lu\n", start);
}
}
}
OpenPOWER on IntegriCloud