diff options
author | jkh <jkh@FreeBSD.org> | 1998-09-14 19:14:11 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-09-14 19:14:11 +0000 |
commit | 1ff461fca5822cc0588ec40dfc09d76d6439384c (patch) | |
tree | 28979b13f1285df2307b45ae71bac811e3a193d3 /usr.sbin/sysinstall/ufs.c | |
parent | fd8eed77ee3588945ba9d0b6160ea0b90661403c (diff) | |
download | FreeBSD-src-1ff461fca5822cc0588ec40dfc09d76d6439384c.zip FreeBSD-src-1ff461fca5822cc0588ec40dfc09d76d6439384c.tar.gz |
Fix printf warnings and add a few casts.
PR: 7560
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>
Diffstat (limited to 'usr.sbin/sysinstall/ufs.c')
-rw-r--r-- | usr.sbin/sysinstall/ufs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/ufs.c b/usr.sbin/sysinstall/ufs.c index 1f321d2..8f61cbe 100644 --- a/usr.sbin/sysinstall/ufs.c +++ b/usr.sbin/sysinstall/ufs.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id$ + * $Id: ufs.c,v 1.12 1997/02/22 14:12:35 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -49,15 +49,15 @@ mediaGetUFS(Device *dev, char *file, Boolean probe) if (isDebug()) msgDebug("Request for %s from UFS\n", file); - snprintf(buf, PATH_MAX, "%s/%s", dev->private, file); + snprintf(buf, PATH_MAX, "%s/%s", (char *)dev->private, file); if (file_readable(buf)) return fopen(buf, "r"); - snprintf(buf, PATH_MAX, "%s/dists/%s", dev->private, file); + snprintf(buf, PATH_MAX, "%s/dists/%s", (char *)dev->private, file); if (file_readable(buf)) return fopen(buf, "r"); - snprintf(buf, PATH_MAX, "%s/%s/%s", dev->private, variable_get(VAR_RELNAME), file); + snprintf(buf, PATH_MAX, "%s/%s/%s", (char *)dev->private, variable_get(VAR_RELNAME), file); if (file_readable(buf)) return fopen(buf, "r"); - snprintf(buf, PATH_MAX, "%s/%s/dists/%s", dev->private, variable_get(VAR_RELNAME), file); + snprintf(buf, PATH_MAX, "%s/%s/dists/%s", (char *)dev->private, variable_get(VAR_RELNAME), file); return fopen(buf, "r"); } |