Eliminate almost all warnings from -Wall

This commit is contained in:
Mike Brady
2018-03-07 14:29:14 +00:00
parent a7d82ae823
commit 07e46565ca
12 changed files with 125 additions and 96 deletions
+4 -2
View File
@@ -441,10 +441,12 @@ void metadata_hub_process_metadata(uint32_t type, uint32_t code, char *data, uin
default: {
char typestring[5];
*(uint32_t *)typestring = htonl(type);
uint32_t tm = htonl(type);
memcpy(typestring,&tm,sizeof(uint32_t));
typestring[4] = 0;
char codestring[5];
*(uint32_t *)codestring = htonl(code);
uint32_t cm = htonl(code);
memcpy(codestring,&cm,sizeof(uint32_t));
codestring[4] = 0;
char *payload;
if (length < 2048)