Changeset 666a568 in rtems-libbsd


Ignore:
Timestamp:
Aug 25, 2017, 12:23:18 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
894c965
Parents:
34ff390
git-author:
Sebastian Huber <sebastian.huber@…> (08/25/17 12:23:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/25/17 12:23:50)
Message:

Include missing <string.h> and <limits.h>

Fix warnings.

Update #2132.
Update #2133.

Files:
13 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/systm.h

    r34ff390 r666a568  
    4545#include <sys/queue.h>
    4646#include <sys/stdint.h>         /* for people using printf mainly */
     47#ifdef __rtems__
     48#include <string.h>
     49#endif /* __rtems__ */
    4750
    4851__NULLABILITY_PRAGMA_PUSH
  • rtemsbsd/rtems/rtems-kernel-init.c

    r34ff390 r666a568  
    5151#include <sys/stat.h>
    5252#include <sys/kbio.h>
     53
     54#include <limits.h>
    5355
    5456#include <dev/kbd/kbdreg.h>
  • testsuite/evdev01/init.c

    r34ff390 r666a568  
    2929#include <stdio.h>
    3030#include <stdlib.h>
     31#include <string.h>
    3132#include <errno.h>
    3233#include <sys/stat.h>
     
    294295}
    295296
    296 static int
     297static void
    297298scan_for_devices(void)
    298299{
     
    319320        rtems_status_code sc;
    320321        struct evdev_test_message msg;
    321         uint32_t size;
     322        size_t size;
    322323
    323324        otask_active = true;
     
    351352        rtems_status_code sc;
    352353        struct evdev_test_message msg;
    353         uint32_t size;
     354        size_t size;
    354355
    355356        ktask_active = true;
     
    434435        rtems_status_code sc;
    435436        struct evdev_test_message msg;
    436         uint32_t size;
     437        size_t size;
    437438
    438439        mtask_active = true;
     
    511512        rtems_status_code sc;
    512513        struct evdev_test_message msg;
    513         uint32_t size;
     514        size_t size;
    514515
    515516        ttask_active = true;
     
    649650        assert(sc == RTEMS_SUCCESSFUL);
    650651
    651         sc = rtems_task_start(oid, evdev_scan_task, NULL);
    652         assert(sc == RTEMS_SUCCESSFUL);
    653 
    654         sc = rtems_task_start(kid, evdev_keyboard_task, NULL);
    655         assert(sc == RTEMS_SUCCESSFUL);
    656 
    657         sc = rtems_task_start(mid, evdev_mouse_task, NULL);
    658         assert(sc == RTEMS_SUCCESSFUL);
    659 
    660         sc = rtems_task_start(tid, evdev_touch_task, NULL);
     652        sc = rtems_task_start(oid, evdev_scan_task, 0);
     653        assert(sc == RTEMS_SUCCESSFUL);
     654
     655        sc = rtems_task_start(kid, evdev_keyboard_task, 0);
     656        assert(sc == RTEMS_SUCCESSFUL);
     657
     658        sc = rtems_task_start(mid, evdev_mouse_task, 0);
     659        assert(sc == RTEMS_SUCCESSFUL);
     660
     661        sc = rtems_task_start(tid, evdev_touch_task, 0);
    661662        assert(sc == RTEMS_SUCCESSFUL);
    662663
  • testsuite/ftpd02/test_main.c

    r34ff390 r666a568  
    3434#include <assert.h>
    3535#include <stdlib.h>
     36#include <string.h>
    3637
    3738#include <rtems.h>
  • testsuite/media01/test_main.c

    r34ff390 r666a568  
    3333#include <stdio.h>
    3434#include <stdlib.h>
     35#include <string.h>
    3536
    3637#include <rtems/bdbuf.h>
  • testsuite/pf01/test_main.c

    r34ff390 r666a568  
    3434#include <stdio.h>
    3535#include <stdlib.h>
     36#include <string.h>
    3637#include <sys/stat.h>
    3738#include <sys/socket.h>
  • testsuite/pf02/test_main.c

    r34ff390 r666a568  
    3333#include <fcntl.h>
    3434#include <stdlib.h>
     35#include <string.h>
    3536
    3637#include <rtems/telnetd.h>
  • testsuite/program01/test_main.c

    r34ff390 r666a568  
    3434#include <errno.h>
    3535#include <stdlib.h>
     36#include <string.h>
    3637#include <unistd.h>
    3738#include <syslog.h>
  • testsuite/selectpollkqueue01/test_main.c

    r34ff390 r666a568  
    11501150{
    11511151        int rfd = ctx->pfd[0];
    1152         int wfd = ctx->pfd[1];
    11531152        struct pollfd pfd = {
    11541153                .fd = rfd,
  • testsuite/telnetd01/test_main.c

    r34ff390 r666a568  
    3131
    3232#include <assert.h>
     33#include <string.h>
    3334
    3435#include <rtems.h>
  • testsuite/termios/test_termios_driver.c

    r34ff390 r666a568  
    1414#include <sys/serial.h>
    1515#include <assert.h>
     16#include <string.h>
    1617#include <rtems/seterr.h>
    1718
  • testsuite/termios01/test_main.c

    r34ff390 r666a568  
    1111#include <sys/ttydefaults.h>
    1212#include <assert.h>
     13#include <limits.h>
    1314#include <stdio.h>
    1415#include <stdlib.h>
     16#include <string.h>
    1517#include <errno.h>
    1618#include <fcntl.h>
     
    577579{
    578580  int                       rc;
    579   rtems_status_code         sc;
    580   rtems_device_major_number registered;
    581581  int                       test;
    582582  struct termios            t;
  • testsuite/usbserial01/init.c

    r34ff390 r666a568  
    2929#include <stdio.h>
    3030#include <stdlib.h>
     31#include <string.h>
    3132#include <errno.h>
    3233#include <fcntl.h>
     
    5758{
    5859        struct usb_test_message msg;
    59         uint32_t size, end_time;
     60        size_t size;
     61        uint32_t end_time;
    6062        int bytes, index;
    6163
     
    9193{
    9294        struct usb_test_message msg;
    93         uint32_t size;
     95        size_t size;
    9496        int bytes, write_len, count = 0;
    9597
     
    122124        struct usb_test_message msg;
    123125        struct termios t;
    124         uint32_t size;
     126        size_t size;
    125127        int fd, iret;
    126128
     
    174176        rtems_status_code sc;
    175177        struct usb_test_message msg;
    176         int ii;
    177178
    178179        (void) arg;
     
    236237        assert(sc == RTEMS_SUCCESSFUL);
    237238
    238         sc = rtems_task_start(rid, usb_serial_read_task, NULL);
    239         assert(sc == RTEMS_SUCCESSFUL);
    240 
    241         sc = rtems_task_start(oid, usb_serial_open_task, NULL);
    242         assert(sc == RTEMS_SUCCESSFUL);
    243 
    244         sc = rtems_task_start(wid, usb_serial_write_task, NULL);
     239        sc = rtems_task_start(rid, usb_serial_read_task, 0);
     240        assert(sc == RTEMS_SUCCESSFUL);
     241
     242        sc = rtems_task_start(oid, usb_serial_open_task, 0);
     243        assert(sc == RTEMS_SUCCESSFUL);
     244
     245        sc = rtems_task_start(wid, usb_serial_write_task, 0);
    245246        assert(sc == RTEMS_SUCCESSFUL);
    246247
Note: See TracChangeset for help on using the changeset viewer.