Index: head/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c =================================================================== --- head/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c (revision 451422) +++ head/comms/yagiuda/files/patch-src_genetic_algorithm_lib.c (nonexistent) @@ -1,22 +0,0 @@ ---- src/genetic_algorithm_lib.c.orig Tue Jul 19 12:25:24 2005 -+++ src/genetic_algorithm_lib.c Tue Jul 19 12:35:51 2005 -@@ -3,9 +3,8 @@ - #endif - #include - --#include --#include - #include -+#include - #include - #include "yagi.h" - -@@ -245,7 +244,7 @@ - GeneRecord *temp ; - double minfit,maxfit ; - sigma=0.0 ; -- minfit=MAXDOUBLE ; -+ minfit=MAXFLOAT; - maxfit=-minfit ; - /* minfit=1e308; maxfit=-1e308; XXXXXXXXXXXXXXXXXXXXXX */ - for(a=0 ; a #include -#include #include #include "yagi.h" #define TINY 1e-10 Property changes on: head/comms/yagiuda/files/patch-src_gain.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/yagiuda/files/patch-src_genetic__algorithm__lib.c =================================================================== --- head/comms/yagiuda/files/patch-src_genetic__algorithm__lib.c (nonexistent) +++ head/comms/yagiuda/files/patch-src_genetic__algorithm__lib.c (revision 451423) @@ -0,0 +1,22 @@ +--- src/genetic_algorithm_lib.c.orig 2000-10-28 13:04:39 UTC ++++ src/genetic_algorithm_lib.c +@@ -3,9 +3,8 @@ + #endif + #include + +-#include +-#include + #include ++#include + #include + #include "yagi.h" + +@@ -245,7 +244,7 @@ int Selection(FILE *fd, int gen) + GeneRecord *temp ; + double minfit,maxfit ; + sigma=0.0 ; +- minfit=MAXDOUBLE ; ++ minfit=MAXFLOAT; + maxfit=-minfit ; + /* minfit=1e308; maxfit=-1e308; XXXXXXXXXXXXXXXXXXXXXX */ + for(a=0 ; a -#include #include #include "nrutil.h" #include "yagi.h" +@@ -32,8 +31,9 @@ int main(int argc, char **argv) + char response, *filename, *notes, *type, data_entry; + FILE *fp; + +- filename = string(0L, 1000L); +- notes = string(0L, 1000L); ++#define MAXINPUTLINE 1000 ++ filename = string(0L, MAXINPUTLINE); ++ notes = string(0L, MAXINPUTLINE); + type = string(0L, 1000L); + + while ((c = getoptions(argc,argv,"h")) != -1) +@@ -56,10 +56,10 @@ int main(int argc, char **argv) + printf("\nThis program asks for length, diameter and position of antenna elements then\n"); + printf("writes them to a file you specify. Data is written in m (metres)\n \n"); + printf("Enter any notes on this design (up to 400 characters): "); +- gets(notes); +- printf("Enter a filename to write data to "); +- gets(filename); +- printf("Enter the centre frequency in MHz "); ++ fgets(notes, MAXINPUTLINE-1, stdin); ++ printf("Enter a filename to write data to "); ++ fgets(filename, MAXINPUTLINE-1, stdin); ++ printf("Enter the centre frequency in MHz "); + scanf("%lf", &frequency); + printf("Enter the minimum frequency in MHz "); + scanf("%lf", &min_f); Property changes on: head/comms/yagiuda/files/patch-src_input.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/yagiuda/files/patch-src_output.c =================================================================== --- head/comms/yagiuda/files/patch-src_output.c (revision 451422) +++ head/comms/yagiuda/files/patch-src_output.c (revision 451423) @@ -1,10 +1,10 @@ ---- src/output.c.orig Tue Jul 19 12:24:27 2005 -+++ src/output.c Tue Jul 19 12:24:35 2005 -@@ -11,7 +11,6 @@ +--- src/output.c.orig 2000-10-29 14:43:15 UTC ++++ src/output.c +@@ -11,7 +11,6 @@ of system memory. #ifdef HAVE_STDLIB_H - + #endif -#include #include #include #include Property changes on: head/comms/yagiuda/files/patch-src_output.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/yagiuda/files/patch-src_random.c =================================================================== --- head/comms/yagiuda/files/patch-src_random.c (revision 451422) +++ head/comms/yagiuda/files/patch-src_random.c (revision 451423) @@ -1,10 +1,10 @@ ---- src/random.c.orig Tue Jul 19 12:36:04 2005 -+++ src/random.c Tue Jul 19 12:36:13 2005 -@@ -42,7 +42,6 @@ +--- src/random.c.orig 2000-10-28 11:43:17 UTC ++++ src/random.c +@@ -42,7 +42,6 @@ return(VAX_integer_random_number_generat #endif - - + + -#include #include "yagi.h" - + double randreal(void) Property changes on: head/comms/yagiuda/files/patch-src_random.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/yagiuda/files/patch-src_string.c =================================================================== --- head/comms/yagiuda/files/patch-src_string.c (revision 451422) +++ head/comms/yagiuda/files/patch-src_string.c (revision 451423) @@ -1,10 +1,10 @@ ---- src/string.c.orig Tue Jul 19 12:23:46 2005 -+++ src/string.c Tue Jul 19 12:23:56 2005 +--- src/string.c.orig 2000-10-28 13:54:45 UTC ++++ src/string.c @@ -2,7 +2,6 @@ #include #endif #include -#include #include "yagi.h" - - + + Property changes on: head/comms/yagiuda/files/patch-src_string.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property Index: head/comms/yagiuda/files/patch-src_yagi.c =================================================================== --- head/comms/yagiuda/files/patch-src_yagi.c (revision 451422) +++ head/comms/yagiuda/files/patch-src_yagi.c (revision 451423) @@ -1,11 +1,11 @@ ---- src/yagi.c.orig Tue Jul 19 12:23:10 2005 -+++ src/yagi.c Tue Jul 19 12:23:33 2005 -@@ -19,7 +19,7 @@ - - +--- src/yagi.c.orig 2005-07-09 19:59:56 UTC ++++ src/yagi.c +@@ -19,7 +19,7 @@ formulae */ + + #include -#include +#include #include #include #include "yagi.h" Property changes on: head/comms/yagiuda/files/patch-src_yagi.c ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -yes \ No newline at end of property +1 \ No newline at end of property