Browse Source

cleanup, reduce compiler warnings

rlar 15 years ago
parent
commit
508df68455
  1. 5
      ChangeLog
  2. 3
      src/frontend/com_fft.c
  3. 4
      src/frontend/inpcom.c

5
ChangeLog

@ -1,3 +1,8 @@
2011-07-17 Robert Larice
* src/frontend/com_fft.c ,
* src/frontend/inpcom.c :
cleanup, reduce compiler warnings
2011-07-17 Robert Larice 2011-07-17 Robert Larice
* src/misc/hash.c : * src/misc/hash.c :
nghash cleanup, use `%p' to print a pointer value nghash cleanup, use `%p' to print a pointer value

3
src/frontend/com_fft.c

@ -286,7 +286,8 @@ com_psd(wordlist *wl)
// get filter length from parameter input // get filter length from parameter input
s = wl->wl_word; s = wl->wl_word;
if (!(ave = ft_numparse(&s, FALSE)) || (*ave < 1.0)) {
ave = ft_numparse(&s, FALSE);
if (!ave || (*ave < 1.0)) {
fprintf(cp_out, "Number of averaged data points: %d\n", 1); fprintf(cp_out, "Number of averaged data points: %d\n", 1);
smooth = 1; smooth = 1;
} }

4
src/frontend/inpcom.c

@ -537,7 +537,9 @@ inp_fix_macro_param_func_paren_io( struct line *begin_card ) {
} }
if ( is_func ) { if ( is_func ) {
if ( ( str_ptr = strstr( card->li_line, "=" ) ) ) *str_ptr = ' ';
str_ptr = strstr( card->li_line, "=" );
if ( str_ptr )
*str_ptr = ' ';
str_ptr = card->li_line + 1; str_ptr = card->li_line + 1;
*str_ptr = 'f'; *(str_ptr+1) = 'u'; *(str_ptr+2) = 'n'; *str_ptr = 'f'; *(str_ptr+1) = 'u'; *(str_ptr+2) = 'n';
*(str_ptr+3) = 'c'; *(str_ptr+4) = ' '; *(str_ptr+3) = 'c'; *(str_ptr+4) = ' ';

Loading…
Cancel
Save