File hugo-rpmlint.patch of Package hugo-2.12-4.48
--- cheat.c
+++ cheat.c
@@ -58,6 +58,7 @@
if (index<0x48000)
return ((index-0x18000) >> 13) + 10;
// FIXME: what to return here?
+ return 0;
}
UInt16
--- gtk_main-server.c
+++ gtk_main-server.c
@@ -16,6 +16,7 @@
#include "gtk_main-server.h"
#include "interface-server.h"
#include "config.h"
+#include <string.h>
GtkWidget* window_main;
GtkWidget* window_help;
--- hcd.c
+++ hcd.c
@@ -115,7 +115,7 @@
#endif
getcwd(cw_dir,256);
//Log("%s\n", cw_dir);
- strncat(cw_dir,MP3_path_tmp,256);
+ strncat(cw_dir,MP3_path_tmp,255);
MP3_path = cw_dir;
//Log("%s\n", MP3_path);
}else{
@@ -181,7 +181,7 @@
#endif
getcwd(cw_dir,256);
//Log("%s\n", cw_dir);
- strncat(cw_dir,ISO_path_tmp,256);
+ strncat(cw_dir,ISO_path_tmp,255);
ISO_path = cw_dir;
//Log("%s\n", ISO_path);
}else{
@@ -1007,7 +1007,7 @@
&& (strcasestr (CD_track[result].filename, ".mp3")
||strcasestr (CD_track[result].filename, ".ogg"))) {
- if (-150 < begin_sect - CD_track[result].beg_lsn < 150)
+ if (-150 < begin_sect - CD_track[result].beg_lsn && begin_sect - CD_track[result].beg_lsn < 150)
Mix_PlayMusic(sdlmixmusic[result], repeat);
else /* can't yet easily repeat "inside" a track */
Mix_PlayMusic(sdlmixmusic[result], FALSE);
--- hugod.c
+++ hugod.c
@@ -368,7 +368,7 @@
{
// No option given starts the GUI
build_gtk_interface(argc, argv);
- return;
+ return 0;
}
#endif
--- osd_linux_sdl_machine.c
+++ osd_linux_sdl_machine.c
@@ -136,7 +136,7 @@
{
#warning implement keypressed with sdl
-
+ return 0;
}
/*****************************************************************************
@@ -161,7 +161,8 @@
return 0;
}
}
- }
+ return 0;
+}
/*****************************************************************************