Changeset 5b3cf90 in mainline
- Timestamp:
- 2009-08-02T19:38:02Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa5526d
- Parents:
- f019cc07
- Location:
- uspace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
rf019cc07 r5b3cf90 173 173 int cmd_cp(char **argv) 174 174 { 175 unsigned int argc, buffer = 0, verbose = 0; 175 unsigned int argc, verbose = 0; 176 int buffer = 0; 176 177 int c, opt_ind; 177 178 int64_t ret; -
uspace/app/bdsh/cmds/modules/ls/ls.c
rf019cc07 r5b3cf90 90 90 int rc; 91 91 92 if (rc = stat(pathname, &s)) { 92 rc = stat(pathname, &s); 93 if (rc != 0) { 93 94 /* Odd chance it was deleted from the time readdir() found it */ 94 95 printf("ls: skipping bogus node %s\n", pathname); -
uspace/app/bdsh/cmds/modules/ls/ls.h
rf019cc07 r5b3cf90 7 7 #define LS_DIR 2 8 8 9 10 static unsigned int ls_scope(const char *);11 9 static void ls_scan_dir(const char *, DIR *); 12 10 static void ls_print(const char *, const char *); -
uspace/app/bdsh/cmds/modules/rm/rm.c
rf019cc07 r5b3cf90 210 210 } 211 211 212 if ( optind == argc) {212 if ((unsigned) optind == argc) { 213 213 cli_error(CL_EFAIL, 214 214 "%s: insufficient arguments. Try %s --help", cmdname, cmdname); -
uspace/srv/pci/libpci/generic.c
rf019cc07 r5b3cf90 30 30 t->dev = dev; 31 31 multi = 0; 32 for (t->func = 0; !t->func || multi && t->func < 8;32 for (t->func = 0; !t->func || (multi && t->func < 8); 33 33 t->func++) { 34 34 u32 vd = pci_read_long(t, PCI_VENDOR_ID); -
uspace/srv/pci/libpci/i386-ports.c
rf019cc07 r5b3cf90 80 80 for (d.dev = 0; d.dev < 32; d.dev++) { 81 81 u16 class, vendor; 82 if ( m->read(&d, PCI_CLASS_DEVICE, (byte *) & class,82 if ((m->read(&d, PCI_CLASS_DEVICE, (byte *) & class, 83 83 sizeof(class)) 84 84 && (class == cpu_to_le16(PCI_CLASS_BRIDGE_HOST) 85 || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA)) 86 || m->read(&d, PCI_VENDOR_ID, (byte *) & vendor,85 || class == cpu_to_le16(PCI_CLASS_DISPLAY_VGA))) 86 || (m->read(&d, PCI_VENDOR_ID, (byte *) & vendor, 87 87 sizeof(vendor)) 88 88 && (vendor == cpu_to_le16(PCI_VENDOR_ID_INTEL) 89 || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ))) {89 || vendor == cpu_to_le16(PCI_VENDOR_ID_COMPAQ)))) { 90 90 a->debug("...outside the Asylum at 0/%02x/0", 91 91 d.dev); -
uspace/srv/pci/libpci/names.c
rf019cc07 r5b3cf90 151 151 int nest; 152 152 static const char parse_error[] = "Parse error"; 153 int i;153 size_t i; 154 154 155 155 *lino = 0; … … 331 331 if (num) 332 332 res = snprintf(buf, size, "%04x", iv); 333 else if ( v = id_lookup(a, ID_VENDOR, iv, 0, 0, 0))333 else if ((v = id_lookup(a, ID_VENDOR, iv, 0, 0, 0)) != 0) 334 334 return (char *) v->name; 335 335 else … … 341 341 if (num) 342 342 res = snprintf(buf, size, "%04x", id); 343 else if ( d = id_lookup(a, ID_DEVICE, iv, id, 0, 0))343 else if ((d = id_lookup(a, ID_DEVICE, iv, id, 0, 0)) != 0) 344 344 return (char *) d->name; 345 345 else if (synth) … … 371 371 if (num) 372 372 res = snprintf(buf, size, "%04x", isv); 373 else if ( v = id_lookup(a, ID_VENDOR, isv, 0, 0, 0))373 else if ((v = id_lookup(a, ID_VENDOR, isv, 0, 0, 0)) != 0) 374 374 return (char *) v->name; 375 375 else if (synth) … … 385 385 if (num) 386 386 res = snprintf(buf, size, "%04x", isd); 387 else if ( d = id_lookup_subsys(a, iv, id, isv, isd))387 else if ((d = id_lookup_subsys(a, iv, id, isv, isd)) != 0) 388 388 return (char *) d->name; 389 389 else if (synth) … … 416 416 if (num) 417 417 res = snprintf(buf, size, "%04x", icls); 418 else if ( cls = id_lookup(a, ID_SUBCLASS, icls >> 8, icls & 0xff, 0, 0))418 else if ((cls = id_lookup(a, ID_SUBCLASS, icls >> 8, icls & 0xff, 0, 0)) != 0) 419 419 return (char *) cls->name; 420 else if ( cls = id_lookup(a, ID_CLASS, icls, 0, 0, 0))420 else if ((cls = id_lookup(a, ID_CLASS, icls, 0, 0, 0)) != 0) 421 421 res = snprintf(buf, size, "%s [%04x]", cls->name, icls); 422 422 else if (synth) … … 430 430 if (num) 431 431 res = snprintf(buf, size, "%02x", ipif); 432 else if ( pif = id_lookup(a, ID_PROGIF, icls >> 8, icls & 0xff, ipif, 0))432 else if ((pif = id_lookup(a, ID_PROGIF, icls >> 8, icls & 0xff, ipif, 0)) != 0) 433 433 return (char *) pif->name; 434 434 else if (icls == 0x0101 && !(ipif & 0x70)) {
Note:
See TracChangeset
for help on using the changeset viewer.