[Lost] [Patch] Kompilieren mit -Wstrict-prototypes und ensprechende?Korrekturen

Antoine Kaufmann ·

On Sun, Aug 31 18:10, Kevin Wolf wrote:
> Am Sonntag, 31. August 2008 17:45:04 schrieb Antoine Kaufmann:
> > Index: trunk/src/modules/lib/servmgr.c
> > ===================================================================
> > --- trunk.orig/src/modules/lib/servmgr.c
> > +++ trunk/src/modules/lib/servmgr.c
> > @@ -38,8 +38,9 @@
> >  #include <rpc.h>
> >  #include <services.h>
> >  #include <syscall.h>
> > +#include <services.h>
> 
> Reicht das einmal nicht?

Doppelt genäht hält besser. ;-)

> 
> >
> > -static pid_t servmgr_pid();
> > +static pid_t servmgr_pid(void);
> >
> >  bool servmgr_need(const char* service_name)
> >  {
> > Index: trunk/src/kernel/src/console.c
> > ===================================================================
> > --- trunk.orig/src/kernel/src/console.c
> > +++ trunk/src/kernel/src/console.c
> > @@ -87,7 +87,7 @@
> >  #define SCREEN_WIDTH 80
> >  #define SCREEN_HEIGHT 25
> >
> > -void con_set_hw_cursor();
> > +static void con_set_hw_cursor(void);
> >
> >  static unsigned short * vidmem = (unsigned short*)0xb8000;
> >
> > @@ -148,7 +148,7 @@ static void con_set_cursor_pos(unsigned
> >  /**
> >   * Leert den Bildschirm
> >   */
> > -static void con_clear_screen()
> > +static void con_clear_screen(void)
> >  {
> >      int i;
> >
> > @@ -163,7 +163,7 @@ static void con_clear_screen()
> >  /**
> >   * Scrollt eine Zeile nach unten
> >   */
> > -static void scroll_down()
> > +static void scroll_down(void)
> >  {
> >      int i;
> >
> > @@ -598,7 +598,7 @@ void init_console(void)
> >  /**
> >   * Aktualisiert die Postition des Hardware Cursors
> >   */
> > -void con_set_hw_cursor()
> > +static void con_set_hw_cursor()
> 
> Hier kein void in den Klammern?

Ist nicht unbedingt nötig weil der Prototyp oben schon gekommen ist,
aber eigentlich gehört es rein.

Noch ein Anlauf.

-- 
Antoine Kaufmann
<toni at famkaufmann.info>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : fix-prototypes.patch
Dateityp    : text/x-diff
Dateigröße  : 67193 bytes
Beschreibung: nicht verfügbar
URL         : <http://list.tyndur.org/pipermail/tyndur-devel/attachments/20080831/81257264/attachment.patch>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 197 bytes
Beschreibung: nicht verfügbar
URL         : <http://list.tyndur.org/pipermail/tyndur-devel/attachments/20080831/81257264/attachment.pgp>

Anhänge

Antworten