From 0571bed7ae0b2e4f6160d4cb7f6776d676cb6b9a Mon Sep 17 00:00:00 2001 From: pjd Date: Fri, 15 Dec 2006 18:16:47 +0000 Subject: Fix ggated for platforms with 64bit size_t. The DIOCGSECTORSIZE ioctl returns u_int. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by: Javier Martín Rueda PR: amd64/91799 MFC after: 3 days --- sbin/ggate/shared/ggate.c | 4 ++-- sbin/ggate/shared/ggate.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/ggate/shared') diff --git a/sbin/ggate/shared/ggate.c b/sbin/ggate/shared/ggate.c index 5101092..ff72a27 100644 --- a/sbin/ggate/shared/ggate.c +++ b/sbin/ggate/shared/ggate.c @@ -149,10 +149,10 @@ g_gate_mediasize(int fd) return (mediasize); } -size_t +u_int g_gate_sectorsize(int fd) { - size_t secsize; + u_int secsize; struct stat sb; if (fstat(fd, &sb) == -1) diff --git a/sbin/ggate/shared/ggate.h b/sbin/ggate/shared/ggate.h index acbdaaa..9a81b0f 100644 --- a/sbin/ggate/shared/ggate.h +++ b/sbin/ggate/shared/ggate.h @@ -98,7 +98,7 @@ void g_gate_log(int priority, const char *message, ...); void g_gate_xvlog(const char *message, va_list ap); void g_gate_xlog(const char *message, ...); off_t g_gate_mediasize(int fd); -size_t g_gate_sectorsize(int fd); +u_int g_gate_sectorsize(int fd); void g_gate_open_device(void); void g_gate_close_device(void); void g_gate_ioctl(unsigned long req, void *data); -- cgit v1.1