Re: [PATCH 1/1] add return value to get_bodies* and fix some compile warnings.

ms <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Somehow, i forgot to set return value from get_bodies*(); my mistake, sorry.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
02-fix-compile-warning.patch (text/x-patch, 1.7 KB)
diff --git a/src/slrnpull.c b/src/slrnpull.c
index ec58608..cc81fbc 100644
--- a/src/slrnpull.c
+++ b/src/slrnpull.c
@@ -1325,7 +1325,7 @@ static int _get_bodies (NNTP_Type *s, NNTP_Artnum_Type *numbers, /*{{{*/
 static int get_bodies (NNTP_Type *s, NNTP_Artnum_Type *numbers, /*{{{*/
 		       char **heads, char **bodies, unsigned int num)
 {
-   _get_bodies(s, numbers, heads, bodies, NULL, num);
+   return _get_bodies(s, numbers, heads, bodies, NULL, num);
 }
 /*}}}*/
 
@@ -1333,7 +1333,7 @@ static int get_bodies_with_xov (NNTP_Type *s, NNTP_Artnum_Type *numbers, /*{{{*/
 		       char **heads, char **bodies, Slrn_XOver_Type *xovs,
                        unsigned int num)
 {
-   _get_bodies(s, numbers, heads, bodies, xovs, num);
+   return _get_bodies(s, numbers, heads, bodies, xovs, num);
 }
 /*}}}*/
 
diff --git a/src/startup.c b/src/startup.c
index 0118a49..fedd7ba 100644
--- a/src/startup.c
+++ b/src/startup.c
@@ -688,7 +688,7 @@ Slrn_Int_Var_Type Slrn_Int_Variables [] = /*{{{*/
      {"use_xgtitle", NULL, NULL},
      {"use_mime", NULL, NULL},
 #endif
-     {"invalid_header_score", &Slrn_Invalid_Header_Score},
+     {"invalid_header_score", &Slrn_Invalid_Header_Score, NULL},
      {NULL, NULL, NULL}
 };
 
diff --git a/src/version.c b/src/version.c
index d78d4d9..672378f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -120,7 +120,7 @@ static void show_compile_time_options (FILE *fp)
    print_options (fp, External_Lib_Options, _("External programs / libs"));
    print_options (fp, Feature_Options, _("Features"));
    (void) fprintf (fp, _(" Using %d bit integers for article numbers.\n"),
-		   8*sizeof(NNTP_Artnum_Type));
+		   (int) (8*sizeof(NNTP_Artnum_Type)));
 }
 
 void slrn_show_version (FILE *fp) /*{{{*/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.