Changeset 1433ecda in mainline for uspace/lib/c/include


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/lib/c/include
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/atomicdflt.h

    r47b2d7e3 r1433ecda  
    3737
    3838#ifndef LIBC_ARCH_ATOMIC_H_
    39         #error This file cannot be included directly, include atomic.h instead.
     39#error This file cannot be included directly, include atomic.h instead.
    4040#endif
    4141
  • uspace/lib/c/include/byteorder.h

    r47b2d7e3 r1433ecda  
    3939
    4040#if !(defined(__BE__) ^ defined(__LE__))
    41         #error The architecture must be either big-endian or little-endian.
     41#error The architecture must be either big-endian or little-endian.
    4242#endif
    4343
  • uspace/lib/c/include/ddi.h

    r47b2d7e3 r1433ecda  
    6969
    7070typedef void (*trace_fnc)(const volatile void *place, uint64_t val,
    71     volatile void* base, size_t size, void *data, bool write);
     71    volatile void *base, size_t size, void *data, bool write);
    7272
    7373extern errno_t pio_trace_enable(void *, size_t, trace_fnc, void *);
  • uspace/lib/c/include/getopt.h

    r47b2d7e3 r1433ecda  
    6161extern int optreset;
    6262
    63 int getopt_long(int, char * const *, const char *,
     63int getopt_long(int, char *const *, const char *,
    6464    const struct option *, int *);
    6565
    6666/* HelenOS Port : Expose legacy getopt() */
    67 int      getopt(int, char * const [], const char *);
     67int      getopt(int, char *const [], const char *);
    6868
    6969#endif /* !_GETOPT_H_ */
  • uspace/lib/c/include/io/pixelmap.h

    r47b2d7e3 r1433ecda  
    8181
    8282static inline void pixelmap_put_pixel(
    83     pixelmap_t * pixelmap,
     83    pixelmap_t *pixelmap,
    8484    sysarg_t x,
    8585    sysarg_t y,
     
    112112                x %= pixmap->width;
    113113                y %= pixmap->height;
    114         }
    115         else if (extend == PIXELMAP_EXTEND_SIDES ||
     114        } else if (extend == PIXELMAP_EXTEND_SIDES ||
    116115            extend == PIXELMAP_EXTEND_TRANSPARENT_SIDES) {
    117116                bool transparent_outside =
     
    120119                        x = 0;
    121120                        transparent = transparent_outside;
    122                 }
    123                 else if (((sysarg_t) x) >= pixmap->width) {
     121                } else if (((sysarg_t) x) >= pixmap->width) {
    124122                        x = pixmap->width - 1;
    125123                        transparent = transparent_outside;
     
    129127                        y = 0;
    130128                        transparent = transparent_outside;
    131                 }
    132                 else if (((sysarg_t) y) >= pixmap->height) {
     129                } else if (((sysarg_t) y) >= pixmap->height) {
    133130                        y = pixmap->height - 1;
    134131                        transparent = transparent_outside;
  • uspace/lib/c/include/ipc/devman.h

    r47b2d7e3 r1433ecda  
    112112
    113113        while (link != &ids->ids.head) {
    114                 mid = list_get_instance(link, match_id_t,link);
     114                mid = list_get_instance(link, match_id_t, link);
    115115                if (mid->score < id->score) {
    116116                        break;
  • uspace/lib/c/include/nic/nic.h

    r47b2d7e3 r1433ecda  
    444444 * @return true or false
    445445 */
    446 static inline int nic_wv_is_multi(nic_wv_type_t type) {
     446static inline int nic_wv_is_multi(nic_wv_type_t type)
     447{
    447448        switch (type) {
    448449        case NIC_WV_FULL_MATCH:
  • uspace/lib/c/include/stdio.h

    r47b2d7e3 r1433ecda  
    4444
    4545#ifndef SEEK_SET
    46         #define SEEK_SET  0
     46#define SEEK_SET  0
    4747#endif
    4848
    4949#ifndef SEEK_CUR
    50         #define SEEK_CUR  1
     50#define SEEK_CUR  1
    5151#endif
    5252
    5353#ifndef SEEK_END
    54         #define SEEK_END  2
     54#define SEEK_END  2
    5555#endif
    5656
     
    8282
    8383/* Formatted string output functions */
    84 extern int fprintf(FILE *, const char*, ...)
     84extern int fprintf(FILE *, const char *, ...)
    8585    _HELENOS_PRINTF_ATTRIBUTE(2, 3);
    8686extern int vfprintf(FILE *, const char *, va_list);
     
    9090extern int vprintf(const char *, va_list);
    9191
    92 extern int snprintf(char *, size_t , const char *, ...)
     92extern int snprintf(char *, size_t, const char *, ...)
    9393    _HELENOS_PRINTF_ATTRIBUTE(3, 4);
    9494extern int vasprintf(char **, const char *, va_list);
  • uspace/lib/c/include/unaligned.h

    r47b2d7e3 r1433ecda  
    3838#include <stdint.h>
    3939
    40 typedef int16_t unaligned_int16_t __attribute__ ((aligned(1)));
    41 typedef int32_t unaligned_int32_t __attribute__ ((aligned(1)));
    42 typedef int64_t unaligned_int64_t __attribute__ ((aligned(1)));
     40typedef int16_t unaligned_int16_t __attribute__((aligned(1)));
     41typedef int32_t unaligned_int32_t __attribute__((aligned(1)));
     42typedef int64_t unaligned_int64_t __attribute__((aligned(1)));
    4343
    44 typedef uint16_t unaligned_uint16_t __attribute__ ((aligned(1)));
    45 typedef uint32_t unaligned_uint32_t __attribute__ ((aligned(1)));
    46 typedef uint64_t unaligned_uint64_t __attribute__ ((aligned(1)));
     44typedef uint16_t unaligned_uint16_t __attribute__((aligned(1)));
     45typedef uint32_t unaligned_uint32_t __attribute__((aligned(1)));
     46typedef uint64_t unaligned_uint64_t __attribute__((aligned(1)));
    4747
    4848#endif
Note: See TracChangeset for help on using the changeset viewer.