Commit a6db2342 authored by rswindell's avatar rswindell

Fix a couple of harmless GCC warnings.

parent 3d3b9303
......@@ -446,7 +446,7 @@ int main(int argc, char **argv)
printf("\nSynchronet Node Display/Control Utility v%s\n\n", revision);
if(sizeof(node_t)!=SIZEOF_NODE_T) {
printf("COMPILER ERROR: sizeof(node_t)=%d instead of %d\n"
printf("COMPILER ERROR: sizeof(node_t)=%u instead of %lu\n"
,sizeof(node_t),SIZEOF_NODE_T);
return(-1);
}
......
......@@ -2771,13 +2771,13 @@ void DLLCALL loginSuccess(link_list_t* list, SOCKADDR_IN* addr)
ulong DLLCALL loginFailure(link_list_t* list, SOCKADDR_IN* addr, const char* prot, const char* user, const char* pass)
{
list_node_t* node;
login_attempt_t first = {0};
login_attempt_t first;
login_attempt_t* attempt=&first;
ulong count=0;
if(list==NULL)
return 0;
memset(&first, 0, sizeof(first));
listLock(list);
if((node=login_attempted(list, addr)) != NULL) {
attempt=node->data;
......
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