Changeset 62140db in mainline
- Timestamp:
- 2009-06-16T21:53:42Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 61d2315
- Parents:
- 0471786
- Location:
- uspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r0471786 r62140db 129 129 char *argv[4]; 130 130 char vc[MAX_DEVICE_NAME]; 131 int rc; 131 132 132 133 snprintf(vc, MAX_DEVICE_NAME, "/dev/%s", dev); … … 135 136 136 137 dev_handle_t handle; 137 devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING);138 rc = devmap_device_get_handle(dev, &handle, IPC_FLAG_BLOCKING); 138 139 139 if ( handle >= 0) {140 if (rc == EOK) { 140 141 argv[0] = "/app/getvc"; 141 142 argv[1] = vc; … … 145 146 if (!task_spawn("/app/getvc", argv)) 146 147 printf(NAME ": Error spawning getvc on %s\n", vc); 147 } else 148 } else { 148 149 printf(NAME ": Error waiting on %s\n", vc); 150 } 149 151 } 150 152 … … 161 163 162 164 if (!mount_devfs()) { 163 return(NAME ": Exiting\n");165 printf(NAME ": Exiting\n"); 164 166 return -2; 165 167 } -
uspace/app/tester/stdio/stdio2.c
r0471786 r62140db 36 36 FILE *f; 37 37 char *file_name = "/test"; 38 size_t n;39 38 int c; 40 39 -
uspace/lib/libblock/libblock.c
r0471786 r62140db 475 475 } 476 476 477 if (*bufpos == *buflen) {477 if (*bufpos == (off_t) *buflen) { 478 478 /* Refill the communication buffer with a new block. */ 479 479 ipcarg_t retval; … … 481 481 *pos / block_size, block_size, &retval); 482 482 if ((rc != EOK) || (retval != EOK)) 483 return (rc != EOK ? rc : retval);483 return (rc != EOK ? rc : (int) retval); 484 484 485 485 *bufpos = 0; -
uspace/lib/libc/generic/devmap.c
r0471786 r62140db 194 194 if (retval != EOK) { 195 195 if (handle != NULL) 196 *handle = -1;196 *handle = (dev_handle_t) -1; 197 197 return retval; 198 198 } -
uspace/srv/fb/ppm.c
r0471786 r62140db 90 90 unsigned int width, height; 91 91 unsigned int maxcolor; 92 inti;92 unsigned i; 93 93 unsigned int color; 94 94 unsigned int coef;
Note:
See TracChangeset
for help on using the changeset viewer.