diff --git a/examples/cbf2adscimg_sub.c b/examples/cbf2adscimg_sub.c index a4ddac4d..55fbd940 100755 --- a/examples/cbf2adscimg_sub.c +++ b/examples/cbf2adscimg_sub.c @@ -154,7 +154,8 @@ static void puthd (char* field, char* value, char* header) /* * find the } marking the end of the information in the header */ - for ( hp=header; *hp != '}'; hp++); + for ( hp=header; *hp != '}'; hp++) + ; /* * Write the field name starting at the position of the } @@ -214,7 +215,8 @@ static void padhd (char* header, int size) /* * find the } marking the end of the header */ - for ( hp=header; *hp != '}'; hp++); + for ( hp=header; *hp != '}'; hp++) + ; hp++; /* diff --git a/examples/cbf_testxfelread.c b/examples/cbf_testxfelread.c index bc74b702..79e57c7f 100644 --- a/examples/cbf_testxfelread.c +++ b/examples/cbf_testxfelread.c @@ -1030,8 +1030,9 @@ extern "C" { for (ii=0; ii < XFEL_DIAMETER; ii++) { for (jj=0; jj < XFEL_DIAMETER; jj++) { if (outarray[ii][jj] != XFEL_UNDEFINED - && outarray[ii][jj] != XFEL_OVERLOAD); - intoutarray[ii][jj] = (int)(outarray[ii][jj]+0.5); + && outarray[ii][jj] != XFEL_OVERLOAD) { + intoutarray[ii][jj] = (int)(outarray[ii][jj]+0.5); + } } } diff --git a/src/cbf.c b/src/cbf.c index c6613e15..53bed4fc 100644 --- a/src/cbf.c +++ b/src/cbf.c @@ -2500,12 +2500,12 @@ int cbf_select_saveframe (cbf_handle handle, unsigned int saveframe) return CBF_ARGUMENT; - /* Find the data block node */ + /* Find the data block node */ - cbf_failnez (cbf_find_parent (&node, handle->node, CBF_DATABLOCK)) + cbf_failnez (cbf_find_parent (&node, handle->node, CBF_DATABLOCK)) - /* Select the save frame */ + /* Select the save frame */ isf = 0;