- Timestamp:
- 2018-04-13T12:39:06Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18b6a88
- Parents:
- f712a85
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-12 17:38:04)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-13 12:39:06)
- Location:
- uspace
- Files:
-
- 5 edited
-
app/tester/mm/common.c (modified) (3 diffs)
-
app/vuhid/main.c (modified) (1 diff)
-
drv/bus/usb/xhci/hc.c (modified) (1 diff)
-
lib/bithenge/src/script.c (modified) (1 diff)
-
lib/c/generic/malloc.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/mm/common.c
rf712a85 r8ebe212 269 269 void fill_block(mem_block_t *block) 270 270 { 271 for (uint8_t * pos = block->addr, *end = pos + block->size;271 for (uint8_t *pos = block->addr, *end = pos + block->size; 272 272 pos < end; pos++) 273 273 *pos = block_expected_value(block, pos); … … 286 286 void check_block(mem_block_t *block) 287 287 { 288 for (uint8_t * pos = block->addr, *end = pos + block->size;288 for (uint8_t *pos = block->addr, *end = pos + block->size; 289 289 pos < end; pos++) { 290 290 if (*pos != block_expected_value(block, pos)) { … … 402 402 void fill_area(mem_area_t *area) 403 403 { 404 for (uint8_t * pos = area->addr, *end = pos + area->size;404 for (uint8_t *pos = area->addr, *end = pos + area->size; 405 405 pos < end; pos++) 406 406 *pos = area_expected_value(area, pos); -
uspace/app/vuhid/main.c
rf712a85 r8ebe212 172 172 { 173 173 printf("Available devices:\n"); 174 for (vuhid_interface_t * *i = available_hid_interfaces; *i != NULL; ++i) {174 for (vuhid_interface_t **i = available_hid_interfaces; *i != NULL; ++i) { 175 175 printf("\t`%s'\t%s\n", (*i)->id, (*i)->name); 176 176 } -
uspace/drv/bus/usb/xhci/hc.c
rf712a85 r8ebe212 87 87 xhci_port_speed_t *speeds = hc->speeds; 88 88 89 for (xhci_extcap_t * ec = hc->xecp; ec; ec = xhci_extcap_next(ec)) {89 for (xhci_extcap_t *ec = hc->xecp; ec; ec = xhci_extcap_next(ec)) { 90 90 xhci_dump_extcap(ec); 91 91 switch (XHCI_REG_RD(ec, XHCI_EC_CAP_ID)) { -
uspace/lib/bithenge/src/script.c
rf712a85 r8ebe212 401 401 const char *name) 402 402 { 403 for (transform_list_t * e = state->transform_list; e; e = e->next) {403 for (transform_list_t *e = state->transform_list; e; e = e->next) { 404 404 if (!str_cmp(e->name, name)) { 405 405 bithenge_transform_inc_ref(e->transform); -
uspace/lib/c/generic/malloc.c
rf712a85 r8ebe212 874 874 * 875 875 */ 876 void *realloc(void * const addr, const size_t size)876 void *realloc(void *const addr, const size_t size) 877 877 { 878 878 if (size == 0) { … … 988 988 * 989 989 */ 990 void free(void * const addr)990 void free(void *const addr) 991 991 { 992 992 if (addr == NULL) … … 996 996 997 997 /* Calculate the position of the header. */ 998 heap_block_head_t *head 999 =(heap_block_head_t *) (addr - sizeof(heap_block_head_t));998 heap_block_head_t *head = 999 (heap_block_head_t *) (addr - sizeof(heap_block_head_t)); 1000 1000 1001 1001 block_check(head); … … 1012 1012 1013 1013 /* Look at the next block. If it is free, merge the two. */ 1014 heap_block_head_t *next_head 1015 =(heap_block_head_t *) (((void *) head) + head->size);1014 heap_block_head_t *next_head = 1015 (heap_block_head_t *) (((void *) head) + head->size); 1016 1016 1017 1017 if ((void *) next_head < area->end) {
Note:
See TracChangeset
for help on using the changeset viewer.
