aboutsummaryrefslogtreecommitdiff
path: root/lib/libstand
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2003-03-03 00:58:47 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2003-03-03 00:58:47 +0000
commit9c73bdcf24bbfedcae8483127ea135ccb39a3155 (patch)
treee74208fe7f9dbd3140ebd17dcd81ed0996fb53e1 /lib/libstand
parentc6269f4b2615528240a5fe8a3d8df7ebb0bdd30c (diff)
Notes
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/nfs.c3
-rw-r--r--lib/libstand/tftp.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c
index 76a4b8d8c120..82fa08b3d298 100644
--- a/lib/libstand/nfs.c
+++ b/lib/libstand/nfs.c
@@ -412,10 +412,11 @@ nfs_open(upath, f)
return (ENXIO);
}
-#ifdef __sparc64__
+#ifndef __i386__
if (strcmp(f->f_dev->dv_name, "net") != 0)
return(EINVAL);
#endif
+
if (!(desc = socktodesc(*(int *)(f->f_devdata))))
return(EINVAL);
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c
index 357cf00d17b0..3a6630c87c5e 100644
--- a/lib/libstand/tftp.c
+++ b/lib/libstand/tftp.c
@@ -254,10 +254,11 @@ tftp_open(path, f)
struct iodesc *io;
int res;
-#ifdef __sparc64__
+#ifndef __i386__
if (strcmp(f->f_dev->dv_name, "net") != 0)
return (EINVAL);
#endif
+
tftpfile = (struct tftp_handle *) malloc(sizeof(*tftpfile));
if (!tftpfile)
return (ENOMEM);