diff options
author | R. Imura <imura@FreeBSD.org> | 2005-09-19 08:07:18 +0000 |
---|---|---|
committer | R. Imura <imura@FreeBSD.org> | 2005-09-19 08:07:18 +0000 |
commit | 4d79445aafc0f1b7b807e1a04ec9217a52d3f3b8 (patch) | |
tree | a956082e32d893d00470c8359f1821ef4cb1c4cb /contrib/smbfs/smbutil | |
parent | 3d42c6d13a94c2c994128949c97bcd468a2ff1ae (diff) | |
download | src-4d79445aafc0f1b7b807e1a04ec9217a52d3f3b8.tar.gz src-4d79445aafc0f1b7b807e1a04ec9217a52d3f3b8.zip |
Remove macros
htole{s,l,q}, letoh{s,l,q}, htobe{s,l,q}, betoh{s,l,q}
and replace it with more standard byteorder macros in our system.
Notes
Notes:
svn path=/head/; revision=150312
Diffstat (limited to 'contrib/smbfs/smbutil')
-rw-r--r-- | contrib/smbfs/smbutil/view.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/smbfs/smbutil/view.c b/contrib/smbfs/smbutil/view.c index 42450df26593..b8465df2ec9c 100644 --- a/contrib/smbfs/smbutil/view.c +++ b/contrib/smbfs/smbutil/view.c @@ -31,6 +31,11 @@ * * $Id: view.c,v 1.9 2002/02/20 09:26:42 bp Exp $ */ + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + +#include <sys/endian.h> #include <sys/param.h> #include <sys/errno.h> #include <sys/stat.h> @@ -44,8 +49,6 @@ #include <cflib.h> -#include <sys/mchain.h> - #include <netsmb/smb_lib.h> #include <netsmb/smb_conn.h> #include <netsmb/smb_rap.h> @@ -113,7 +116,7 @@ cmd_view(int argc, char *argv[]) exit(1); } for (ep = rpbuf, i = 0; i < entries; i++, ep++) { - type = letohs(ep->shi1_type); + type = le16toh(ep->shi1_type); cp = (char*)rpbuf + ep->shi1_remark; printf("%-12s %-10s %s\n", ep->shi1_netname, |