pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/biology/azara One of the first questions in every C cl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ea2307ef0ac
branches:  trunk
changeset: 505564:1ea2307ef0ac
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 04 21:57:08 2006 +0000

description:
One of the first questions in every C class is about the return type
of main. Why does it have to be int? Well, not returning anything can
result in a random exit code. Add make(1) as caller and the normal
behaviour of just stopping on the first error and this package has
a very low success rate for building e.g. on DragonFly.

diffstat:

 biology/azara/distinfo         |   4 +++-
 biology/azara/patches/patch-ad |  19 +++++++++++++++++++
 biology/azara/patches/patch-ae |  20 ++++++++++++++++++++
 3 files changed, 42 insertions(+), 1 deletions(-)

diffs (62 lines):

diff -r 5226be0e450a -r 1ea2307ef0ac biology/azara/distinfo
--- a/biology/azara/distinfo    Wed Jan 04 21:43:44 2006 +0000
+++ b/biology/azara/distinfo    Wed Jan 04 21:57:08 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2005/11/19 17:23:46 kristerw Exp $
+$NetBSD: distinfo,v 1.3 2006/01/04 21:57:08 joerg Exp $
 
 SHA1 (azara-2.7-src.tar.gz) = 53caa85953f700cdc4ec9ef26d2bb7d9448b77b0
 RMD160 (azara-2.7-src.tar.gz) = 2426102dbb87984f88ec1266b72d2e307484af0c
@@ -6,3 +6,5 @@
 SHA1 (patch-aa) = 1066c1e1b070020bbdd18439b27e15d359dd5e69
 SHA1 (patch-ab) = 46e512fba5b00cb36cd2b2d50db4919875124309
 SHA1 (patch-ac) = 12b37403ce7107989d2e0e5c7e9b3b6868464f5c
+SHA1 (patch-ad) = 0da330b12768124586f786c7e980d540a4414d54
+SHA1 (patch-ae) = d87b2cdcc33a423eba3a17a95cc66d8c13390e81
diff -r 5226be0e450a -r 1ea2307ef0ac biology/azara/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/biology/azara/patches/patch-ad    Wed Jan 04 21:57:08 2006 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-ad,v 1.1 2006/01/04 21:57:08 joerg Exp $
+
+--- help/txt2hlp.c.orig        2006-01-04 21:49:13.000000000 +0000
++++ help/txt2hlp.c
+@@ -26,7 +26,7 @@ static void print_line(String line, FILE
+     }
+ }
+ 
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+     int i, count;
+     char *prefix, *ptr, *full_prefix;
+@@ -129,4 +129,5 @@ void main(int argc, char **argv)
+ 
+     fclose(fp_in);
+     fclose(fp_out);
++    return(0);
+ }
diff -r 5226be0e450a -r 1ea2307ef0ac biology/azara/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/biology/azara/patches/patch-ae    Wed Jan 04 21:57:08 2006 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ae,v 1.1 2006/01/04 21:57:09 joerg Exp $
+
+--- help/txt2html.c.orig       2006-01-04 21:51:17.000000000 +0000
++++ help/txt2html.c
+@@ -190,7 +190,7 @@ static void print_line(String line, FILE
+     fprintf(fp, "\n");
+ }
+ 
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+     char *prefix, *name, *ptr;
+     Line input_file, output_file, line, module, error_msg;
+@@ -248,4 +248,6 @@ void main(int argc, char **argv)
+ 
+     fclose(fp_in);
+     fclose(fp_out);
++
++    return(0);
+ }



Home | Main Index | Thread Index | Old Index