Changeset 02aaec7 in rtems


Ignore:
Timestamp:
Aug 18, 2008, 9:42:41 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
c8b1ab9
Parents:
73d5344
Message:

2008-08-18 Joel Sherrill <joel.sherrill@…>

  • libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c, libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_malloc_mbuf.c, libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h: Fix some warnings.
Location:
cpukit
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r73d5344 r02aaec7  
     12008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c,
     4        libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c,
     5        libnetworking/rtems/rtems_glue.c,
     6        libnetworking/rtems/rtems_malloc_mbuf.c,
     7        libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h:
     8        Fix some warnings.
     9
    1102008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    211
  • cpukit/libnetworking/lib/ftpfs.c

    r73d5344 r02aaec7  
    634634    else if (1 != inet_aton(hostname,&(fsp->farCtrlAddress.sin_addr))) {
    635635      struct hostent *hent;
    636       struct hostent *gethostbyname(const char *name);
    637636     
    638637      hent = gethostbyname(hostname);
  • cpukit/libnetworking/libc/inet_ntoa.c

    r73d5344 r02aaec7  
    4343#include <arpa/inet.h>
    4444#include <stdio.h>
     45#include <sys/libkern.h> /* for strcpy */
    4546
    4647/*
     
    5354{
    5455        static char ret[18];
    55         char *strcpy(char *dest, const char *src);
    5656
    5757        strcpy(ret, "[inet_ntoa error]");
  • cpukit/libnetworking/libc/rcmd.c

    r73d5344 r02aaec7  
    5555#include <string.h>
    5656#include <rpc/rpc.h>
     57#include <sys/select.h>
    5758#ifdef YP
    5859#include <rpcsvc/yp_prot.h>
  • cpukit/libnetworking/nfs/bootp_subr.c

    r73d5344 r02aaec7  
    269269{
    270270  size_t len;
    271   void *realloc(void * __r, size_t __size);
    272271
    273272  if (dst == NULL) {
  • cpukit/libnetworking/rtems/rtems_glue.c

    r73d5344 r02aaec7  
    139139
    140140/*
     141 * Externs for BSD data we have to access during initialization
     142 */
     143extern struct domain routedomain;
     144extern struct domain inetdomain;
     145
     146/*
    141147 * Do the initializations required by the BSD code
    142148 */
     
    193199         */
    194200        {
    195         extern struct domain routedomain;
    196         extern struct domain inetdomain;
    197201
    198202        routedomain.dom_next = domains;
     
    216220
    217221/*
     222 * RTEMS Specific Helper Routines
     223 */
     224extern void rtems_set_udp_buffer_sizes( u_long, u_long );
     225extern void rtems_set_tcp_buffer_sizes( u_long, u_long );
     226extern void rtems_set_sb_efficiency( u_long );
     227
     228/*
    218229 * Initialize and start network operations
    219230 */
     
    222233{
    223234        rtems_status_code sc;
    224         extern void rtems_set_udp_buffer_sizes( u_long, u_long );
    225         extern void rtems_set_tcp_buffer_sizes( u_long, u_long );
    226         extern void rtems_set_sb_efficiency( u_long );
    227235
    228236        /*
  • cpukit/libnetworking/rtems/rtems_malloc_mbuf.c

    r73d5344 r02aaec7  
    2222
    2323/*
     24 * We want to use the REAL system malloc.  Do not let the BSD malloc macro
     25 * invade this file.
     26 */
     27extern void *malloc(size_t);
     28
     29/*
    2430 * Default allocator for mbuf data. Over-ride in user code to change
    2531 * the way mbuf's are allocated.
     
    2834void* rtems_bsdnet_malloc_mbuf(size_t size, int type)
    2935{
    30    extern void *malloc(size_t);
    3136   return malloc(size);
    3237}
  • cpukit/libnetworking/rtems/rtems_showicmpstat.c

    r73d5344 r02aaec7  
    3232}
    3333
     34/*
     35 * External data we peek at during statistics reporting
     36 */
     37extern unsigned int icmplenPanicAvoided;
     38
    3439void
    3540rtems_bsdnet_show_icmp_stats (void)
     
    3742        int i;
    3843        char cbuf[20];
    39         extern unsigned int icmplenPanicAvoided;
    4044
    4145        printf ("************ ICMP Statistics ************\n");
  • cpukit/libnetworking/sys/malloc.h

    r73d5344 r02aaec7  
    348348void    free (void *addr, int type);
    349349void    *malloc (size_t size, int type, int flags);
     350/* standard realloc but we cannot include stdlib.h */
     351void    *realloc(void * __r, size_t __size);
     352
    350353#endif /* _KERNEL */
    351354
Note: See TracChangeset for help on using the changeset viewer.