This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] conflicting types in libgloss/m68k/leds.c


I found the following error in libgloss:

libgloss/m68k/leds.c:19: error: conflicting types for 'led_putnum'
libgloss/m68k/leds.c:19: note: an argument type that has a default
promotion can't match an empty parameter name list declaration
libgloss/m68k/leds.h:34: error: previous declaration of 'led_putnum' was
here

This patch removes the problem.

Regards,
        Gábor Lóki

2004-01-22 Gábor Lóki <loki@inf.u-szeged.hu>

     * libgloss/m68k/leds.c: remove led_putnum(), zylons() forward
       function declarations.
     * libgloss/m68k/leds.h: add zylons() forward function declaration.

Index: src/libgloss/m68k/leds.c
===================================================================
RCS file: /cvs/src/src/libgloss/m68k/leds.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 leds.c
*** src/libgloss/m68k/leds.c	17 Mar 2000 22:48:50 -0000	1.1
--- src/libgloss/m68k/leds.c	22 Jan 2004 08:22:55 -0000
***************
*** 15,23 ****
   */
  #include "leds.h"
  
- void zylons();
- void led_putnum();
- 
  /*
   * led_putnum -- print a hex number on the LED. the value of num must be a char with
   *              the ascii value. ie... number 0 is '0', a is 'a', ' ' (null) clears
--- 15,20 ----
Index: src/libgloss/m68k/leds.h
===================================================================
RCS file: /cvs/src/src/libgloss/m68k/leds.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 leds.h
*** src/libgloss/m68k/leds.h	17 Mar 2000 22:48:50 -0000	1.1
--- src/libgloss/m68k/leds.h	22 Jan 2004 08:22:55 -0000
***************
*** 32,36 ****
--- 32,37 ----
  #define FUDGE(x) ((x >= 0xa && x <= 0xf) ? (x + 'a') & 0x7f : (x + '0') & 0x7f)
  
  extern void led_putnum( char );
+ void zylons();
  
  #endif		/* __LEDS_H__ */




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]