aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2006-12-18 11:12:00 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2006-12-18 11:12:00 +0000
commit15c7f46bcf28b55f91da496e1cdd0cc7f7b9e0f6 (patch)
tree3c5f3d9597a1127bd2b72e5cb3f4d360e01b7fce
parentde87749b4a65aa291de3c1778e44f1cfd0a2aaaa (diff)
downloadsrc-15c7f46bcf28b55f91da496e1cdd0cc7f7b9e0f6.tar.gz
src-15c7f46bcf28b55f91da496e1cdd0cc7f7b9e0f6.zip
For consistency use 'unsigned' instead of 'u_int'.
Notes
Notes: svn path=/head/; revision=165327
-rw-r--r--sbin/ggate/ggated/ggated.c2
-rw-r--r--sbin/ggate/shared/ggate.c4
-rw-r--r--sbin/ggate/shared/ggate.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ggate/ggated/ggated.c b/sbin/ggate/ggated/ggated.c
index b0dd2d2d8577..b211ccc8592c 100644
--- a/sbin/ggate/ggated/ggated.c
+++ b/sbin/ggate/ggated/ggated.c
@@ -60,7 +60,7 @@
struct ggd_connection {
off_t c_mediasize;
- u_int c_sectorsize;
+ unsigned c_sectorsize;
unsigned c_flags; /* flags (RO/RW) */
int c_diskfd;
int c_sendfd;
diff --git a/sbin/ggate/shared/ggate.c b/sbin/ggate/shared/ggate.c
index ff72a27e5bd1..09e35d36434a 100644
--- a/sbin/ggate/shared/ggate.c
+++ b/sbin/ggate/shared/ggate.c
@@ -149,10 +149,10 @@ g_gate_mediasize(int fd)
return (mediasize);
}
-u_int
+unsigned
g_gate_sectorsize(int fd)
{
- u_int secsize;
+ unsigned secsize;
struct stat sb;
if (fstat(fd, &sb) == -1)
diff --git a/sbin/ggate/shared/ggate.h b/sbin/ggate/shared/ggate.h
index 9a81b0fba5b9..3e26253c360c 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);
-u_int g_gate_sectorsize(int fd);
+unsigned 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);