summaryrefslogtreecommitdiff
path: root/server/bdump.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-04-21 15:04:33 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-04-21 15:04:33 +0000
commit65985154f1dc200dec5738a6092c6d3247a3744b (patch)
tree8cf39b573a2c86f409b9d68c951acac61adcb2e0 /server/bdump.c
parent8a75a336df6609a4d0a7650e4a0e7b1f13e9ed7c (diff)
use less oddball types
Diffstat (limited to 'server/bdump.c')
-rw-r--r--server/bdump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/bdump.c b/server/bdump.c
index 991c3e1..ad9fef6 100644
--- a/server/bdump.c
+++ b/server/bdump.c
@@ -1301,7 +1301,7 @@ bdump_recv_loop(Server *server)
} else {
retval = Z_krb5_init_keyblock(Z_krb5_ctx,
ntohl(*(krb5_enctype *)&buf[0]),
- ntohl(*(u_int32_t *)&buf[4]),
+ ntohl(*(uint32_t *)&buf[4]),
&client->session_keyblock);
if (retval) {
syslog(LOG_ERR, "brl failed to allocate keyblock: %s",
@@ -1467,7 +1467,7 @@ send_normal_tcp(ZNotice_Kind_t kind,
char *pack;
int packlen, count;
Code_t retval;
- u_short length;
+ unsigned short length;
memset (&notice, 0, sizeof(notice));
@@ -1512,7 +1512,7 @@ send_normal_tcp(ZNotice_Kind_t kind,
}
#endif
- length = htons((u_short) packlen);
+ length = htons((unsigned short) packlen);
count = net_write(output, (char *) &length, sizeof(length));
if (count != sizeof(length)) {
@@ -1550,10 +1550,10 @@ send_normal_tcp(ZNotice_Kind_t kind,
static Code_t
get_packet(void *packet, int len, int *retlen)
{
- u_short length;
+ unsigned short length;
int result;
- result = net_read(input, (char *) &length, sizeof(u_short));
+ result = net_read(input, (char *) &length, sizeof(unsigned short));
if (result < sizeof(short)) {
if (result < 0) {
return errno;
@@ -1596,7 +1596,7 @@ extract_sin(ZNotice_t *notice, struct sockaddr_in *target)
if ((cp >= notice->z_message + notice->z_message_len) || (*cp == '\0')) {
return(ZSRV_PKSHORT);
}
- target->sin_port = htons((u_short) atoi(cp));
+ target->sin_port = htons((unsigned short)atoi(cp));
target->sin_family = AF_INET;
return ZERR_NONE;
}