Changeset 1487880d in rtems


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

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

  • libcsupport/include/rtems/libcsupport.h, libcsupport/src/scandir.c, libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-monitor.c, libmisc/serdbg/serdbg.c, libmisc/serdbg/serdbg.h, libnetworking/netinet/in_cksum_powerpc.h, shttpd/compat_rtems.h: Fix warnings.
Location:
cpukit
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6bb1d1a2 r1487880d  
     12008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/include/rtems/libcsupport.h, libcsupport/src/scandir.c,
     4        libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-monitor.c,
     5        libmisc/serdbg/serdbg.c, libmisc/serdbg/serdbg.h,
     6        libnetworking/netinet/in_cksum_powerpc.h, shttpd/compat_rtems.h: Fix
     7        warnings.
     8
    192008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/libcsupport/include/rtems/libcsupport.h

    r6bb1d1a2 r1487880d  
    4141extern void fix_syscall_errno(void);
    4242extern size_t malloc_free_space(void);
     43extern void open_dev_console(void);
    4344
    4445/*
  • cpukit/libcsupport/src/scandir.c

    r6bb1d1a2 r1487880d  
    133133        closedir(dirp);
    134134        if (nitems && dcomp != NULL){
    135                 qsort(names, nitems, sizeof(struct dirent *), dcomp);
     135                qsort(names, nitems, sizeof(struct dirent *),
     136                (int (*)(const void *, const void *)) dcomp);
    136137        }
    137138        *namelist = names;
  • cpukit/libmisc/cpuuse/cpuusagereset.c

    r6bb1d1a2 r1487880d  
    3636}
    3737
     38
     39/*
     40 * External data that is shared by cpu usage code but not declared in .h files.
     41 */
     42#ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
     43  extern struct timespec CPU_usage_Uptime_at_last_reset;
     44#else
     45  extern uint32_t   CPU_usage_Ticks_at_last_reset;
     46#endif
     47
    3848/*
    3949 *  rtems_cpu_usage_reset
     
    4252{
    4353  #ifdef RTEMS_ENABLE_NANOSECOND_CPU_USAGE_STATISTICS
    44     extern struct timespec CPU_usage_Uptime_at_last_reset;
    45    
    4654    _TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset );
    4755    _Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
    4856  #else
    49     extern uint32_t   CPU_usage_Ticks_at_last_reset;
    50 
    5157    CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
    52 
    5358  #endif
    5459
  • cpukit/libmisc/monitor/mon-monitor.c

    r6bb1d1a2 r1487880d  
    556556    for (;;)
    557557    {
    558         extern rtems_tcb * _Thread_Executing;
    559558        rtems_monitor_command_entry_t *command;
    560559
  • cpukit/libmisc/serdbg/serdbg.c

    r6bb1d1a2 r1487880d  
    5454
    5555  rtems_status_code rc = RTEMS_SUCCESSFUL;
    56   extern void set_debug_traps(void);
    57   extern void breakpoint(void);
    5856
    5957  if (is_initialized) {
  • cpukit/libmisc/serdbg/serdbg.h

    r6bb1d1a2 r1487880d  
    175175\*=========================================================================*/
    176176
     177/*
     178 * Assumed to be provided by the BSP
     179 */
     180extern void set_debug_traps(void);
     181extern void breakpoint(void);
    177182#ifdef __cplusplus
    178183}
  • cpukit/libnetworking/netinet/in_cksum_powerpc.h

    r6bb1d1a2 r1487880d  
    3939
    4040int
    41 in_cksum(m, len)
    42         register struct mbuf *m;
    43         register int len;
     41in_cksum(
     42        struct mbuf *m,
     43        int len
     44)
    4445{
    4546        u_char junk;
  • cpukit/shttpd/compat_rtems.h

    r6bb1d1a2 r1487880d  
    1414#include <rtems.h>
    1515#include <sys/socket.h>
     16#include <sys/select.h>
    1617#include <netinet/in.h>
    1718#include <dirent.h>
Note: See TracChangeset for help on using the changeset viewer.