Commit 0b28b83a authored by sbbs's avatar sbbs
Browse files

Address clang (FreeBSD 10.3) warnings reported by andrew clarke (3:633/267).

parent 96ae56bc
......@@ -6,6 +6,7 @@
#include "xpendian.h" /* swap */
#include "dirwrap.h" /* _PATH_DEVNULL */
#include <stdio.h>
#include <string.h>
FILE* nulfp;
FILE* bodyfp;
......@@ -63,7 +64,7 @@ int pktdump(FILE* fp, const char* fname)
fpkdmsg_t pkdmsg;
if(fread(&pkthdr,sizeof(pkthdr),1,fp) != 1) {
fprintf(stderr,"%s !Error reading pkthdr (%u bytes)\n"
fprintf(stderr,"%s !Error reading pkthdr (%lu bytes)\n"
,fname,sizeof(pkthdr));
return(-1);
}
......@@ -193,15 +194,15 @@ int main(int argc, char** argv)
bodyfp=nulfp;
if(sizeof(fpkthdr_t)!=FIDO_PACKET_HDR_LEN) {
printf("sizeof(fpkthdr_t)=%d, expected: %d\n",sizeof(fpkthdr_t),FIDO_PACKET_HDR_LEN);
printf("sizeof(fpkthdr_t)=%lu, expected: %d\n",sizeof(fpkthdr_t),FIDO_PACKET_HDR_LEN);
return(-1);
}
if(sizeof(fpkdmsg_t)!=FIDO_PACKED_MSG_HDR_LEN) {
printf("sizeof(fpkdmsg_t)=%d, expected: %d\n",sizeof(fpkdmsg_t),FIDO_PACKED_MSG_HDR_LEN);
printf("sizeof(fpkdmsg_t)=%lu, expected: %d\n",sizeof(fpkdmsg_t),FIDO_PACKED_MSG_HDR_LEN);
return(-1);
}
if(sizeof(fmsghdr_t)!=FIDO_STORED_MSG_HDR_LEN) {
printf("sizeof(fmsghdr_t)=%d, expected: %d\n",sizeof(fmsghdr_t),FIDO_STORED_MSG_HDR_LEN);
printf("sizeof(fmsghdr_t)=%lu, expected: %d\n",sizeof(fmsghdr_t),FIDO_STORED_MSG_HDR_LEN);
return(-1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment