Fix a few warnings
This commit is contained in:
1 parent
c621589157
commit
621a72e698
18 files changed
+76
-74
No files matched your search
+4
-6
@@ -177,12 +177,10 @@ static void mdfour_update(struct mdfour *md, byte *in, int n)
|
||||
|
||||
static void mdfour_result(struct mdfour *md, byte *out)
|
||||
{
|
||||
m = md;
|
||||
|
||||
copy4(out, m->A);
|
||||
copy4(out+4, m->B);
|
||||
copy4(out+8, m->C);
|
||||
copy4(out+12, m->D);
|
||||
copy4(out, md->A);
|
||||
copy4(out+4, md->B);
|
||||
copy4(out+8, md->C);
|
||||
copy4(out+12, md->D);
|
||||
}
|
||||
|
||||
static void mdfour(byte *out, byte *in, int n)
|
||||
|
||||
+1
-1
@@ -246,7 +246,7 @@ int MSG_ReadBits( msg_t *msg, int bits ) {
|
||||
}
|
||||
msg->readcount = (msg->bit>>3)+1;
|
||||
}
|
||||
if ( sgn ) {
|
||||
if ( sgn && bits > 0 && bits < 32 ) {
|
||||
if ( value & ( 1 << ( bits - 1 ) ) ) {
|
||||
value |= -1 ^ ( ( 1 << bits ) - 1 );
|
||||
}
|
||||
|
||||
@@ -1619,7 +1619,7 @@ Called from NET_Sleep which uses select() to determine which sockets have seen a
|
||||
void NET_Event(fd_set *fdr)
|
||||
{
|
||||
byte bufData[MAX_MSGLEN + 1];
|
||||
netadr_t from;
|
||||
netadr_t from = {0};
|
||||
msg_t netmsg;
|
||||
|
||||
while(1)
|
||||
|
||||
Reference in new issue
Block a user