silence gcc warnings
This commit is contained in:
@ -56,7 +56,6 @@ static void fspath(Chan*, char*, char*);
|
||||
static ulong fsdirread(Chan*, uchar*, int, ulong);
|
||||
static int fsomode(int);
|
||||
static int chown(char *path, int uid, int);
|
||||
static int link(char *path, char *next);
|
||||
|
||||
/* clumsy hack, but not worse than the Path stuff in the last one */
|
||||
static char*
|
||||
@ -132,7 +131,7 @@ fswalk1(Chan *c, char *name)
|
||||
|
||||
fspath(c, name, path);
|
||||
|
||||
/* print("** fs walk '%s' -> %s\n", path, name); /**/
|
||||
/* print("** fs walk '%s' -> %s\n", path, name); */
|
||||
|
||||
if(stat(path, &stbuf) < 0)
|
||||
return 0;
|
||||
|
@ -7,7 +7,9 @@
|
||||
|
||||
#include "devip.h"
|
||||
|
||||
#ifdef MSVC
|
||||
#pragma comment(lib, "wsock32.lib")
|
||||
#endif
|
||||
|
||||
#undef listen
|
||||
#undef accept
|
||||
|
11
kern/win32.c
11
kern/win32.c
@ -54,7 +54,7 @@ osinit(void)
|
||||
t->sema = CreateSemaphore(0, 0, 1000, 0);
|
||||
if(t->sema == 0) {
|
||||
oserror();
|
||||
fatal("could not create semaphore: %r");
|
||||
panic("could not create semaphore: %r");
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ osnewproc(Proc *p)
|
||||
op->sema = CreateSemaphore(0, 0, 1000, 0);
|
||||
if (op->sema == 0) {
|
||||
oserror();
|
||||
fatal("could not create semaphore: %r");
|
||||
panic("could not create semaphore: %r");
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@ osproc(Proc *p)
|
||||
|
||||
if(CreateThread(0, 0, tramp, p, 0, &tid) == 0) {
|
||||
oserror();
|
||||
fatal("osproc: %r");
|
||||
panic("osproc: %r");
|
||||
}
|
||||
|
||||
Sleep(0);
|
||||
@ -109,7 +109,7 @@ tramp(LPVOID vp)
|
||||
op->sema = CreateSemaphore(0, 0, 1000, 0);
|
||||
if(op->sema == 0) {
|
||||
oserror();
|
||||
fatal("could not create semaphore: %r");
|
||||
panic("could not create semaphore: %r");
|
||||
}
|
||||
|
||||
(*p->fn)(p->arg);
|
||||
@ -162,7 +162,7 @@ seconds(void)
|
||||
return time(0);
|
||||
}
|
||||
|
||||
int
|
||||
ulong
|
||||
ticks(void)
|
||||
{
|
||||
return GetTickCount();
|
||||
@ -182,7 +182,6 @@ fastticks(uvlong *v)
|
||||
#endif
|
||||
|
||||
extern int main(int, char*[]);
|
||||
static int args(char *argv[], int n, char *p);
|
||||
|
||||
int APIENTRY
|
||||
WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR arg, int nshow)
|
||||
|
Reference in New Issue
Block a user