/trunk/uspace/app/init/init.c |
---|
128,6 → 128,7 |
{ |
char *argv[4]; |
char vc[MAX_DEVICE_NAME]; |
int rc; |
snprintf(vc, MAX_DEVICE_NAME, "/dev/%s", dev); |
134,9 → 135,9 |
printf(NAME ": Spawning getvc on %s\n", vc); |
dev_handle_t handle; |
devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING); |
rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING); |
if (handle >= 0) { |
if (rc == EOK) { |
argv[0] = "/app/getvc"; |
argv[1] = vc; |
argv[2] = app; |
144,9 → 145,10 |
if (!task_spawn("/app/getvc", argv)) |
printf(NAME ": Error spawning getvc on %s\n", vc); |
} else |
} else { |
printf(NAME ": Error waiting on %s\n", vc); |
} |
} |
int main(int argc, char *argv[]) |
{ |
160,7 → 162,7 |
spawn("/srv/devfs"); |
if (!mount_devfs()) { |
return(NAME ": Exiting\n"); |
printf(NAME ": Exiting\n"); |
return -2; |
} |
/trunk/uspace/app/tester/stdio/stdio2.c |
---|
35,7 → 35,6 |
{ |
FILE *f; |
char *file_name = "/test"; |
size_t n; |
int c; |
printf("Open file '%s' for writing\n", file_name); |
/trunk/uspace/lib/libblock/libblock.c |
---|
474,13 → 474,13 |
left -= rd; |
} |
if (*bufpos == *buflen) { |
if (*bufpos == (off_t) *buflen) { |
/* Refill the communication buffer with a new block. */ |
ipcarg_t retval; |
int rc = async_req_2_1(devcon->dev_phone, BD_READ_BLOCK, |
*pos / block_size, block_size, &retval); |
if ((rc != EOK) || (retval != EOK)) |
return (rc != EOK ? rc : retval); |
return (rc != EOK ? rc : (int) retval); |
*bufpos = 0; |
*buflen = block_size; |
/trunk/uspace/lib/libc/generic/devmap.c |
---|
193,7 → 193,7 |
if (retval != EOK) { |
if (handle != NULL) |
*handle = -1; |
*handle = (dev_handle_t) -1; |
return retval; |
} |
/trunk/uspace/srv/fb/ppm.c |
---|
89,7 → 89,7 |
{ |
unsigned int width, height; |
unsigned int maxcolor; |
int i; |
unsigned i; |
unsigned int color; |
unsigned int coef; |