Changeset 05b59393 in mainline
- Timestamp:
- 2017-10-04T18:02:14Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9e88da
- Parents:
- 0b2d369
- Location:
- uspace
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtin_cmds.c
r0b2d369 r05b59393 79 79 return (char *)NULL; 80 80 81 for(i=0; builtin_aliases[i] != NULL; i+ +) {81 for(i=0; builtin_aliases[i] != NULL; i+=2) { 82 82 if (!str_cmp(builtin_aliases[i], command)) 83 return (char *)builtin_aliases[++i]; 84 i++; 83 return (char *)builtin_aliases[i+1]; 85 84 } 86 85 -
uspace/app/bdsh/cmds/mod_cmds.c
r0b2d369 r05b59393 96 96 return (char *)NULL; 97 97 98 for(i=0; mod_aliases[i] != NULL; i+ +) {98 for(i=0; mod_aliases[i] != NULL; i+=2) { 99 99 if (!str_cmp(mod_aliases[i], command)) 100 return (char *)mod_aliases[++i]; 101 i++; 100 return (char *)mod_aliases[i+1]; 102 101 } 103 102 -
uspace/app/fontviewer/fontviewer.c
r0b2d369 r05b59393 78 78 points += increment; 79 79 80 if ( (event->key == KC_DOWN)) {80 if (event->key == KC_DOWN) { 81 81 if (points <= increment) { 82 82 points = 1; -
uspace/app/sbi/src/builtin/bi_task.c
r0b2d369 r05b59393 114 114 } 115 115 116 cmd[dim] = '\0';116 cmd[dim] = NULL; 117 117 118 118 if (os_exec((char * const *)cmd) != EOK) { -
uspace/app/sbi/src/run_expr.c
r0b2d369 r05b59393 2886 2886 /* Is it static/nonstatic? */ 2887 2887 var_sn = stree_symbol_has_attr( 2888 var_to_symbol(var), sac_static) ;2888 var_to_symbol(var), sac_static) ? sn_static : sn_nonstatic; 2889 2889 if (var_sn == sn) { 2890 2890 /* Compute field type. XXX Memoize. */ -
uspace/drv/audio/sb16/dsp.c
r0b2d369 r05b59393 75 75 [DSP_NO_BUFFER] = "NO BUFFER", 76 76 }; 77 if ( state < ARRAY_SIZE(state_names))77 if ((size_t)state < ARRAY_SIZE(state_names)) 78 78 return state_names[state]; 79 79 return "UNKNOWN"; … … 144 144 { 145 145 dsp_write(dsp, SET_SAMPLING_RATE_OUTPUT); 146 dsp_write(dsp, rate >> 8); 147 dsp_write(dsp, rate & 0xff); 148 ddf_log_verbose("Sampling rate: %hhx:%hhx.", rate >> 8, rate & 0xff); 146 uint8_t rate_lo = rate & 0xff; 147 uint8_t rate_hi = rate >> 8; 148 dsp_write(dsp, rate_hi); 149 dsp_write(dsp, rate_lo); 150 ddf_log_verbose("Sampling rate: %hhx:%hhx.", rate_hi, rate_lo); 149 151 } 150 152 … … 202 204 203 205 return ret; 204 }205 206 static inline size_t sample_count(pcm_sample_format_t format, size_t byte_count)207 {208 return byte_count / pcm_sample_format_size(format);209 206 } 210 207 -
uspace/drv/bus/isa/i8237.c
r0b2d369 r05b59393 371 371 372 372 /* 16 bit transfers are a bit special */ 373 ddf_msg(LVL_DEBUG, "Unspoiled address %#" PRIx32 " (size %" PRIu 16")",373 ddf_msg(LVL_DEBUG, "Unspoiled address %#" PRIx32 " (size %" PRIu32 ")", 374 374 pa, size); 375 375 if (is_dma16(channel)) { … … 388 388 389 389 ddf_msg(LVL_DEBUG, "Setting channel %u to address %#" PRIx32 " " 390 "(size %" PRIu 16"), mode %hhx.", channel, pa, size, mode);390 "(size %" PRIu32 "), mode %hhx.", channel, pa, size, mode); 391 391 392 392 /* Mask DMA request */ -
uspace/drv/bus/usb/ohci/ohci_rh.c
r0b2d369 r05b59393 367 367 case USB_HUB_FEATURE_C_PORT_RESET: /*20*/ 368 368 usb_log_debug2("Clearing port C_CONNECTION, C_ENABLE, " 369 "C_SUSPEND, C_OC or C_RESET on port % "PRIu16".\n", port);369 "C_SUSPEND, C_OC or C_RESET on port %u.\n", port); 370 370 /* Bit offsets correspond to the feature number */ 371 371 OHCI_WR(hub->registers->rh_port_status[port], … … 416 416 case USB_HUB_FEATURE_PORT_RESET: /*4*/ 417 417 usb_log_debug2("Setting port POWER, ENABLE, SUSPEND or RESET " 418 "on port % "PRIu16".\n", port);418 "on port %u.\n", port); 419 419 /* Bit offsets correspond to the feature number */ 420 420 OHCI_WR(hub->registers->rh_port_status[port], 1 << feature); -
uspace/drv/fb/amdm37x_dispc/amdm37x_dispc.c
r0b2d369 r05b59393 267 267 amdm37x_dispc_t *dispc = vis->dev_ctx; 268 268 const visual_t visual = mode.cell_visual.pixel_visual; 269 assert( visual < sizeof(pixel2visual_table) / sizeof(pixel2visual_table[0]));269 assert((size_t)visual < sizeof(pixel2visual_table) / sizeof(pixel2visual_table[0])); 270 270 const unsigned bpp = pixel2visual_table[visual].bpp; 271 271 pixel2visual_t p2v = pixel2visual_table[visual].func; -
uspace/lib/c/generic/cap.c
r0b2d369 r05b59393 185 185 sunit = NULL; 186 186 187 if (cap->cunit < 0 || cap->cunit >= CU_LIMIT) 188 assert(false); 187 assert(cap->cunit < CU_LIMIT); 189 188 190 189 rc = ipow10_u64(cap->dp, &div); -
uspace/lib/hound/src/client.c
r0b2d369 r05b59393 48 48 49 49 /** Stream structure */ 50 typedefstruct hound_stream {50 struct hound_stream { 51 51 /** link in context's list */ 52 52 link_t link; … … 59 59 /** Stream flags */ 60 60 int flags; 61 } hound_stream_t;61 }; 62 62 63 63 /** … … 72 72 73 73 /** Hound client context structure */ 74 typedefstruct hound_context {74 struct hound_context { 75 75 /** Audio session */ 76 76 hound_sess_t *session; … … 89 89 /** Assigned context id */ 90 90 hound_context_id_t id; 91 } hound_context_t;91 }; 92 92 93 93 /** -
uspace/lib/nettl/src/amap.c
r0b2d369 r05b59393 58 58 #include <stdint.h> 59 59 #include <stdlib.h> 60 61 static portrng_flags_t aflags_to_pflags(amap_flags_t flags) 62 { 63 // FIXME: either use a single type, or provide a proper conversion 64 return (portrng_flags_t) flags; 65 } 60 66 61 67 /** Create association map. … … 378 384 mepp = *epp; 379 385 380 rc = portrng_alloc(repla->portrng, epp->local.port, arg, flags,386 rc = portrng_alloc(repla->portrng, epp->local.port, arg, aflags_to_pflags(flags), 381 387 &mepp.local.port); 382 388 if (rc != EOK) { … … 422 428 mepp = *epp; 423 429 424 rc = portrng_alloc(laddr->portrng, epp->local.port, arg, flags,430 rc = portrng_alloc(laddr->portrng, epp->local.port, arg, aflags_to_pflags(flags), 425 431 &mepp.local.port); 426 432 if (rc != EOK) { … … 466 472 mepp = *epp; 467 473 468 rc = portrng_alloc(llink->portrng, epp->local.port, arg, flags,474 rc = portrng_alloc(llink->portrng, epp->local.port, arg, aflags_to_pflags(flags), 469 475 &mepp.local.port); 470 476 if (rc != EOK) { … … 498 504 mepp = *epp; 499 505 500 rc = portrng_alloc(map->unspec, epp->local.port, arg, flags,506 rc = portrng_alloc(map->unspec, epp->local.port, arg, aflags_to_pflags(flags), 501 507 &mepp.local.port); 502 508 if (rc != EOK) { -
uspace/lib/usb/src/usb.c
r0b2d369 r05b59393 73 73 const char *usb_str_transfer_type(usb_transfer_type_t t) 74 74 { 75 if ( t >= ARRAY_SIZE(str_transfer_type)) {75 if ((size_t)t >= ARRAY_SIZE(str_transfer_type)) { 76 76 return "invalid"; 77 77 } … … 86 86 const char *usb_str_transfer_type_short(usb_transfer_type_t t) 87 87 { 88 if ( t >= ARRAY_SIZE(str_transfer_type_short)) {88 if ((size_t)t >= ARRAY_SIZE(str_transfer_type_short)) { 89 89 return "invl"; 90 90 } -
uspace/lib/usbdev/src/devdrv.c
r0b2d369 r05b59393 53 53 54 54 /** USB device structure. */ 55 typedefstruct usb_device {55 struct usb_device { 56 56 /** Connection to device on USB bus */ 57 57 usb_dev_session_t *bus_session; … … 95 95 */ 96 96 void *driver_data; 97 } usb_device_t;97 }; 98 98 99 99 /** Count number of pipes the driver expects.
Note:
See TracChangeset
for help on using the changeset viewer.