diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-06-11 19:33:05 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-06-11 19:33:05 +0000 |
commit | 1b1ee5553889e207087539ddafa5dfd4e28bd585 (patch) | |
tree | ba998dfb4fcad03e00a5cbf58e2a0ad648bab6e6 /usr.sbin/sysinstall/ufs.c | |
parent | b1a97daa1e06ab0de3071f979965878fd056292b (diff) | |
download | FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.zip FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.tar.gz |
Merge RELENG_2_0_5 into HEAD
Diffstat (limited to 'usr.sbin/sysinstall/ufs.c')
-rw-r--r-- | usr.sbin/sysinstall/ufs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/ufs.c b/usr.sbin/sysinstall/ufs.c index 9ad4a81..5f68366 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: ufs.c,v 1.3 1995/05/29 11:01:42 jkh Exp $ + * $Id: ufs.c,v 1.4.2.2 1995/06/05 12:04:09 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -50,13 +50,13 @@ /* No init or shutdown routines necessary - all done in mediaSetUFS() */ int -mediaGetUFS(char *file) +mediaGetUFS(Device *dev, char *file, Attribs *dist_attrs) { char buf[PATH_MAX]; - snprintf(buf, PATH_MAX, "%s/%s", (char *)mediaDevice->private, file); + snprintf(buf, PATH_MAX, "%s/%s", dev->private, file); if (!access(buf, R_OK)) return open(buf, O_RDONLY); - snprintf(buf, PATH_MAX, "%s/dists/%s", (char *)mediaDevice->private, file); + snprintf(buf, PATH_MAX, "%s/dists/%s", dev->private, file); return open(buf, O_RDONLY); } |