mac warnings
This commit is contained in:
@@ -13,7 +13,7 @@ Queue* kbdq; /* unprocessed console input */
|
||||
Queue* lineq; /* processed console input */
|
||||
Queue* serialoq; /* serial console output */
|
||||
Queue* kprintoq; /* console output, for /dev/kprint */
|
||||
ulong kprintinuse; /* test and set whether /dev/kprint is open */
|
||||
long kprintinuse; /* test and set whether /dev/kprint is open */
|
||||
int iprintscreenputs = 0;
|
||||
|
||||
int panicking;
|
||||
|
@@ -585,7 +585,7 @@ fsdirread(Chan *c, uchar *va, int count, ulong offset)
|
||||
d.length = stbuf.st_size;
|
||||
d.type = 'U';
|
||||
d.dev = c->dev;
|
||||
n = convD2M(&d, (char*)va+i, count-i);
|
||||
n = convD2M(&d, (uchar*)va+i, count-i);
|
||||
if(n == BIT16SZ){
|
||||
strcpy(uif->nextname, de);
|
||||
break;
|
||||
|
@@ -72,7 +72,7 @@ so_connect(int fd, unsigned long raddr, unsigned short rport)
|
||||
void
|
||||
so_getsockname(int fd, unsigned long *laddr, unsigned short *lport)
|
||||
{
|
||||
int len;
|
||||
uint len;
|
||||
struct sockaddr_in sin;
|
||||
|
||||
len = sizeof(sin);
|
||||
@@ -96,7 +96,8 @@ so_listen(int fd)
|
||||
int
|
||||
so_accept(int fd, unsigned long *raddr, unsigned short *rport)
|
||||
{
|
||||
int nfd, len;
|
||||
int nfd;
|
||||
uint len;
|
||||
struct sockaddr_in sin;
|
||||
|
||||
len = sizeof(sin);
|
||||
|
Reference in New Issue
Block a user