cleanup, reduce compiler warnings

This commit is contained in:
rlar 2011-07-17 16:37:54 +00:00
parent 56287d9a1d
commit 508df68455
3 changed files with 10 additions and 2 deletions

View File

@ -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
* src/misc/hash.c :
nghash cleanup, use `%p' to print a pointer value

View File

@ -286,7 +286,8 @@ com_psd(wordlist *wl)
// get filter length from parameter input
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);
smooth = 1;
}

View File

@ -537,7 +537,9 @@ inp_fix_macro_param_func_paren_io( struct line *begin_card ) {
}
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 = 'f'; *(str_ptr+1) = 'u'; *(str_ptr+2) = 'n';
*(str_ptr+3) = 'c'; *(str_ptr+4) = ' ';