From 5946300a975fa43091a8a19dcc64e8dd807f351d Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 23 Jun 2010 18:57:13 +0000 Subject: [PATCH] upgrade foo() --> foo(void) ansi function definition --- ChangeLog | 9 +++++++++ src/frontend/com_measure2.c | 10 +++++----- src/frontend/hpgl.c | 8 ++++---- src/frontend/inpcom.c | 4 ++-- src/frontend/numparam/spicenum.c | 2 +- src/main.c | 2 +- src/maths/misc/randnumb.c | 6 +++--- 7 files changed, 25 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4429de605..5dc1c1f21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-06-23 Robert Larice + * src/main.c, + * src/frontend/com_measure2.c, + * src/frontend/hpgl.c, + * src/frontend/inpcom.c, + * src/frontend/numparam/spicenum.c, + * src/maths/misc/randnumb.c : + ansi function definitions, type foo() {} --> type foo(void) {} + 2010-06-23 Robert Larice * src/frontend/breakp.c, * src/frontend/com_let.c, diff --git a/src/frontend/com_measure2.c b/src/frontend/com_measure2.c index b911bc706..ffc0d8b0a 100644 --- a/src/frontend/com_measure2.c +++ b/src/frontend/com_measure2.c @@ -847,25 +847,25 @@ static void measure_integ( } /* still some more work to do.... */ -void measure_deriv( ) { +void measure_deriv(void) { // DERIVATIVE DERIV return; } // ERR Equations -void measure_ERR( ) { +void measure_ERR(void) { return; } -void measure_ERR1( ) { +void measure_ERR1(void) { return; } -void measure_ERR2( ) { +void measure_ERR2(void) { return; } -void measure_ERR3( ) { +void measure_ERR3(void) { return; } diff --git a/src/frontend/hpgl.c b/src/frontend/hpgl.c index d2c2bc004..80bd6ea02 100644 --- a/src/frontend/hpgl.c +++ b/src/frontend/hpgl.c @@ -84,7 +84,7 @@ static double tocm = 0.0025; static double scale; /* Used for fine tuning */ static int hcopygraphid; -int GL_Init() +int GL_Init(void) { if (!cp_getvar("hcopyscale", VT_STRING, psscale)) { scale = 1.0; @@ -163,7 +163,7 @@ GRAPH *graph) return 0; } -int GL_Close() +int GL_Close(void) { /* in case GL_Close is called as part of an abort, @@ -186,7 +186,7 @@ int GL_Close() return 0; } -int GL_Clear() +int GL_Clear(void) { /* do nothing */ @@ -303,7 +303,7 @@ int colorid) return 0; } -int GL_Update() +int GL_Update(void) { fflush(plotfile); diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 7dbe9845d..3000576a7 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2001,7 +2001,7 @@ inp_determine_libraries( struct line *deck, char *lib_name ) } static void -inp_init_lib_data() +inp_init_lib_data(void) { int i; @@ -2626,7 +2626,7 @@ inp_expand_macro_in_str( char *str ) } static void -inp_expand_macros_in_func() +inp_expand_macros_in_func(void) { int i; diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index e05a2174d..b02c6a8e3 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -720,7 +720,7 @@ nupa_add_inst_param (char *param_name, double value) * the global level. Afterwards, the inst_symbols table is freed. * ----------------------------------------------------------------- */ void -nupa_copy_inst_dico () +nupa_copy_inst_dico (void) { entry *entry_p ; /* current entry */ tdico *dico_p ; /* local copy for speed */ diff --git a/src/main.c b/src/main.c index 5c038b417..d179891f4 100644 --- a/src/main.c +++ b/src/main.c @@ -512,7 +512,7 @@ rl_event_func() case it falls back to repeatable calling cp_evloop() SJB 26th April 2005 */ static void -app_rl_readlines() +app_rl_readlines(void) { #if defined(HAVE_GNUREADLINE) || defined(HAVE_BSDEDITLINE) /* GNU Readline Support -- Andrew Veliath */ diff --git a/src/maths/misc/randnumb.c b/src/maths/misc/randnumb.c index 6003cbebc..058b105ea 100644 --- a/src/maths/misc/randnumb.c +++ b/src/maths/misc/randnumb.c @@ -28,7 +28,7 @@ double gauss(void); This will override the call to srand in main.c. Checkseed should be put in front of any call to random or rand. */ -void checkseed() +void checkseed(void) { int newseed; static int oldseed; @@ -45,7 +45,7 @@ void checkseed() } /* uniform random number generator, interval -1 .. +1 */ -double drand() +double drand(void) { checkseed(); return ( 2.0*((double) (RR_MAX-abs(random())) / (double)RR_MAX-0.5)); @@ -54,7 +54,7 @@ double drand() /*** gauss ***/ -double gauss() +double gauss(void) { static bool gliset = TRUE; static double glgset = 0.0;