mac warnings

This commit is contained in:
Russ Cox
2005-11-07 17:34:39 +00:00
parent 494adeed0b
commit 537f761602
9 changed files with 21 additions and 18 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);