diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-09-14 19:14:11 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-09-14 19:14:11 +0000 |
commit | 04f80d35bfd2391d20fcfa199bb136ef5afdc5f7 (patch) | |
tree | aa5f9bfff95942272d7a052c4525b0aa9db1bcc0 /usr.sbin/sysinstall/disks.c | |
parent | 344e4a27337137823232ab245b39f61ab15d00b1 (diff) | |
download | src-04f80d35bfd2391d20fcfa199bb136ef5afdc5f7.tar.gz src-04f80d35bfd2391d20fcfa199bb136ef5afdc5f7.zip |
Fix printf warnings and add a few casts.
PR: 7560
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Notes
Notes:
svn path=/head/; revision=39183
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r-- | usr.sbin/sysinstall/disks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c index 25108a4dc8c8..b5ed7ab6b805 100644 --- a/usr.sbin/sysinstall/disks.c +++ b/usr.sbin/sysinstall/disks.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: disks.c,v 1.97 1998/03/23 05:59:10 jkh Exp $ + * $Id: disks.c,v 1.98 1998/03/23 08:36:26 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -309,7 +309,7 @@ diskPartition(Device *dev) int size, subtype; chunk_e partitiontype; - snprintf(tmp, 20, "%d", chunk_info[current_chunk]->size); + snprintf(tmp, 20, "%lu", chunk_info[current_chunk]->size); val = msgGetInput(tmp, "Please specify the size for new FreeBSD slice in blocks\n" "or append a trailing `M' for megabytes (e.g. 20M)."); if (val && (size = strtol(val, &cp, 0)) > 0) { |