Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions examples/cbf2adscimg_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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++;

/*
Expand Down
5 changes: 3 additions & 2 deletions examples/cbf_testxfelread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/cbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down