summaryrefslogtreecommitdiff
path: root/lib/ZParseNot.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-23 06:28:56 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-23 06:28:56 +0000
commit76a56cff9767ccf9d1e579e808247ef3ad1f5282 (patch)
tree15a05e875c5e43bf2a739d1f9b15ed3b71c3bb77 /lib/ZParseNot.c
parent0a9847711808fbd565b2d1db75525de6e606063f (diff)
lint fixes
Diffstat (limited to 'lib/ZParseNot.c')
-rw-r--r--lib/ZParseNot.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/ZParseNot.c b/lib/ZParseNot.c
index ee23152..4fc9cf1 100644
--- a/lib/ZParseNot.c
+++ b/lib/ZParseNot.c
@@ -29,7 +29,7 @@ Code_t ZParseNotice(buffer, len, notice)
int maj, numfields, i;
unsigned int temp[3];
- bzero(notice, sizeof(ZNotice_t));
+ bzero((char *)notice, sizeof(ZNotice_t));
ptr = buffer;
end = buffer+len;
@@ -48,7 +48,7 @@ Code_t ZParseNotice(buffer, len, notice)
if (ZReadAscii(ptr, end-ptr, (unsigned char *)temp,
sizeof(int)) == ZERR_BADFIELD)
return (ZERR_BADPKT);
- numfields = ntohl(*temp);
+ numfields = ntohl((u_long) *temp);
ptr += strlen(ptr)+1;
/*XXX 3 */
@@ -60,7 +60,7 @@ Code_t ZParseNotice(buffer, len, notice)
if (ZReadAscii(ptr, end-ptr, (unsigned char *)temp,
sizeof(int)) == ZERR_BADFIELD)
return (ZERR_BADPKT);
- notice->z_kind = (ZNotice_Kind_t)ntohl(*temp);
+ notice->z_kind = (ZNotice_Kind_t)ntohl((u_long) *temp);
numfields--;
ptr += strlen(ptr)+1;
}
@@ -72,8 +72,8 @@ Code_t ZParseNotice(buffer, len, notice)
sizeof(ZUnique_Id_t)) == ZERR_BADFIELD)
return (ZERR_BADPKT);
bcopy((char *)temp, (char *)&notice->z_uid, sizeof(ZUnique_Id_t));
- notice->z_time.tv_sec = ntohl(notice->z_uid.tv.tv_sec);
- notice->z_time.tv_usec = ntohl(notice->z_uid.tv.tv_usec);
+ notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.tv.tv_sec);
+ notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.tv.tv_usec);
numfields--;
ptr += strlen(ptr)+1;
}
@@ -107,7 +107,7 @@ Code_t ZParseNotice(buffer, len, notice)
if (ZReadAscii(ptr, end-ptr, (unsigned char *)temp,
sizeof(int)) == ZERR_BADFIELD)
return (ZERR_BADPKT);
- notice->z_authent_len = ntohl(*temp);
+ notice->z_authent_len = ntohl((u_long) *temp);
numfields--;
ptr += strlen(ptr)+1;
}
@@ -175,7 +175,7 @@ Code_t ZParseNotice(buffer, len, notice)
sizeof(ZChecksum_t))
== ZERR_BADFIELD)
return (ZERR_BADPKT);
- notice->z_checksum = ntohl(*temp);
+ notice->z_checksum = ntohl((u_long) *temp);
numfields--;
ptr += strlen(ptr)+1;
@@ -192,8 +192,8 @@ Code_t ZParseNotice(buffer, len, notice)
sizeof(ZUnique_Id_t)) == ZERR_BADFIELD)
return (ZERR_BADPKT);
bcopy((char *)temp, (char *)&notice->z_multiuid, sizeof(ZUnique_Id_t));
- notice->z_time.tv_sec = ntohl(notice->z_multiuid.tv.tv_sec);
- notice->z_time.tv_usec = ntohl(notice->z_multiuid.tv.tv_usec);
+ notice->z_time.tv_sec = ntohl((u_long) notice->z_multiuid.tv.tv_sec);
+ notice->z_time.tv_usec = ntohl((u_long) notice->z_multiuid.tv.tv_usec);
numfields--;
ptr += strlen(ptr)+1;
}