Fixing some compiler warnings
This commit is contained in:
parent
3e38a6340f
commit
7bc8169ff2
@ -47,6 +47,8 @@ _alloc_file()
|
||||
}
|
||||
|
||||
// XXX: malloc
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -59,7 +59,7 @@ main(int argc, const char *argv[])
|
||||
break;
|
||||
case SYSCTL_TYPE_INT:
|
||||
OSSysCtl(SYSCTLTable[i].path, &scInt, NULL);
|
||||
printf("%s: %ld\n", SYSCTLTable[i].path, scInt.value);
|
||||
printf("%s: %lld\n", SYSCTLTable[i].path, scInt.value);
|
||||
break;
|
||||
case SYSCTL_TYPE_BOOL:
|
||||
OSSysCtl(SYSCTLTable[i].path, &scBool, NULL);
|
||||
|
@ -170,14 +170,14 @@ MP_CrossCall(CrossCallCB cb, void *arg)
|
||||
volatile CrossCallFrame frame;
|
||||
|
||||
// Setup frame
|
||||
memset(&frame, 0, sizeof(frame));
|
||||
memset((void *)&frame, 0, sizeof(frame));
|
||||
frame.cb = cb;
|
||||
frame.arg = arg;
|
||||
frame.count = 1;
|
||||
|
||||
Critical_Enter();
|
||||
|
||||
cpus[CPU()].frame = &frame;
|
||||
cpus[CPU()].frame = (CrossCallFrame *)&frame;
|
||||
cpuid(0, 0, 0, 0, 0);
|
||||
|
||||
if (LAPIC_Broadcast(T_CROSSCALL) < 0)
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <sys/semaphore.h>
|
||||
#include <sys/thread.h>
|
||||
|
||||
Spinlock semaListLock = { 0, 0, 0, 0, 0, 0, "Semaphore List" };
|
||||
Spinlock semaListLock = { 0, 0, 0, 0, 0, 0, 0, 0, "Semaphore List" };
|
||||
LIST_HEAD(SemaListHead, Semaphore) semaList = LIST_HEAD_INITIALIZER(semaList);
|
||||
|
||||
extern uint64_t ticksPerSecond;
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <lwip/init.h>
|
||||
#include <lwip/ip.h>
|
||||
#include <lwip/sockets.h>
|
||||
|
Loading…
Reference in New Issue
Block a user