Changeset 850fd32 in mainline for uspace/lib


Ignore:
Timestamp:
2018-03-11T01:21:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
84239b1, f0e825d
Parents:
338d54a7
Message:

Fix mischievious semicolons.

Location:
uspace/lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/double_to_str.c

    r338d54a7 r850fd32  
    665665                        return -1;
    666666                }
    667         };
     667        }
    668668
    669669        assert(/* 0 <= len && */ len < buf_size);
  • uspace/lib/c/generic/io/printf_core.c

    r338d54a7 r850fd32  
    13881388                                default:
    13891389                                        end = true;
    1390                                 };
     1390                                }
    13911391                        } while (!end);
    13921392
  • uspace/lib/c/generic/vfs/canonify.c

    r338d54a7 r850fd32  
    9696                return ret;
    9797        }
    98         unsigned i;
    99         for (i = 1; cur->stop[i] && cur->stop[i] != '/'; i++)
    100                 ;
     98        unsigned i = 1;
     99        while (cur->stop[i] && cur->stop[i] != '/')
     100                i++;
     101       
    101102        ret.kind = TK_COMP;
    102103        ret.start = &cur->stop[1];
  • uspace/lib/c/generic/vfs/inbox.c

    r338d54a7 r850fd32  
    7979{
    8080        inbox_entry *next = NULL;
     81        int result;
    8182
    8283        list_foreach(inb_list, link, inbox_entry, e) {
     
    8586                case -1:
    8687                        continue;
    87                 case 0:;
    88                         int result = e->file;
     88                case 0:
     89                        result = e->file;
    8990                        if (file == -1) {
    9091                                free(e->name);
  • uspace/lib/pcm/src/format.c

    r338d54a7 r850fd32  
    134134        case PCM_SAMPLE_SINT24_BE:
    135135        case PCM_SAMPLE_FLOAT32:
    136         default: ;
     136        default:
     137                break;
    137138        }
    138139#undef SET_NULL
  • uspace/lib/usbdev/src/devdrv.c

    r338d54a7 r850fd32  
    115115static inline size_t count_pipes(const usb_endpoint_description_t **endpoints)
    116116{
    117         size_t count;
    118         for (count = 0; endpoints != NULL && endpoints[count] != NULL; ++count);
     117        size_t count = 0;
     118        while (endpoints != NULL && endpoints[count] != NULL)
     119                ++count;
    119120        return count;
    120121}
Note: See TracChangeset for help on using the changeset viewer.