diff options
author | delphij <delphij@FreeBSD.org> | 2006-08-08 14:28:03 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-08-08 14:28:03 +0000 |
commit | 9587fe5a7f8b7de319a422a48e57f95f3443919c (patch) | |
tree | b6692e4917e73a20e82c1a0f16005d3bf243248c /usr.sbin/sade/misc.c | |
parent | ae2f8ae4be9332bd1024da5ecc4d2e3a86015f3b (diff) | |
download | FreeBSD-src-9587fe5a7f8b7de319a422a48e57f95f3443919c.zip FreeBSD-src-9587fe5a7f8b7de319a422a48e57f95f3443919c.tar.gz |
Partitions are only meaningful for i386 and amd64 architectures, so disable
these code on other architectures.
Diffstat (limited to 'usr.sbin/sade/misc.c')
-rw-r--r-- | usr.sbin/sade/misc.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c index 0eb7363..4730c7f 100644 --- a/usr.sbin/sade/misc.c +++ b/usr.sbin/sade/misc.c @@ -352,46 +352,6 @@ Mount(char *mountp, void *dev) return DITEM_SUCCESS; } -#if 0 -int -Mount_msdosfs(char *mountp, void *dev) -{ - struct msdosfs_args mount_args; - char device[80]; - char mountpoint[FILENAME_MAX]; - - if (Fake) - return DITEM_SUCCESS; - - if (*((char *)dev) != '/') { - sprintf(device, "/dev/%s", (char *)dev); - sprintf(mountpoint, "%s", mountp); - } - else { - strcpy(device, dev); - strcpy(mountpoint, mountp); - } - - if (Mkdir(mountpoint)) { - msgConfirm("Unable to make directory mountpoint for %s!", mountpoint); - return DITEM_FAILURE; - } - if (isDebug()) - msgDebug("mount %s %s\n", device, mountpoint); - - memset(&mount_args, 0, sizeof(mount_args)); - mount_args.fspec = device; - mount_args.magic = MSDOSFS_ARGSMAGIC; - mount_args.mask = S_IRWXU | S_IRWXG | S_IRWXO; - if (mount("msdosfs", mountpoint, 0, - (caddr_t)&mount_args) == -1) { - msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno)); - return DITEM_FAILURE; - } - return DITEM_SUCCESS; -} -#endif - WINDOW * openLayoutDialog(char *helpfile, char *title, int x, int y, int width, int height) { |