Changeset a9d2986 in network-demos


Ignore:
Timestamp:
Jun 21, 2007, 6:26:18 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, network-demos-4-10-branch, network-demos-4-8-branch, network-demos-4-9-branch
Children:
557c93a
Parents:
6a19a29
Message:

2007-06-21 Joel Sherrill <joel.sherrill@…>

  • test.c: More warnings removed.
Location:
netdemo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • netdemo/ChangeLog

    r6a19a29 ra9d2986  
     12007-06-21      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * test.c: More warnings removed.
     4
    152007-06-21      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • netdemo/test.c

    r6a19a29 ra9d2986  
    3535{
    3636        int opt;
    37         int optlen = sizeof opt;
     37        socklen_t optlen = sizeof opt;
    3838
    3939        if (getsockopt (s, SOL_SOCKET, SO_BROADCAST, &opt, &optlen) < 0)
    4040                printf ("getsockopt failed: %s\n", strerror (errno));
    41         printf ("Opt:%d    Optlen:%d\n", opt, optlen);
     41        printf ("Opt:%d    Optlen:%ld\n", opt, (long)optlen);
    4242}
    4343
     
    202202        int s, s1;
    203203        struct sockaddr_in myAddr, farAddr;
    204         int addrlen;
     204        socklen_t addrlen;
    205205        rtems_id tid;
    206206        rtems_task_priority my_priority;
Note: See TracChangeset for help on using the changeset viewer.