Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 21, 2024
1 parent 8e5c60d commit 0cf3e98
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions hdf/src/dfunjpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ typedef hdf_source_mgr *hdf_src_ptr;

/* JPEG error handling */
struct hdf_error_mgr {
struct jpeg_error_mgr pub; /* public fields */
jmp_buf setjmp_buffer; /* for returning to caller */
struct jpeg_error_mgr pub; /* public fields */
jmp_buf setjmp_buffer; /* for returning to caller */
};

typedef struct hdf_error_mgr * hdf_error_ptr;
typedef struct hdf_error_mgr *hdf_error_ptr;

#define INPUT_BUF_SIZE 4096 /* size of JPEG input buffer */

Expand All @@ -85,16 +85,16 @@ void hdf_error_exit(j_common_ptr cinfo);
* Remarks: Initializes the JPEG source mgr for further output.
*---------------------------------------------------------------------------*/
void
hdf_error_exit (j_common_ptr cinfo)
hdf_error_exit(j_common_ptr cinfo)
{
/* cinfo->err points to an hdf_error_mgr struct */
hdf_error_ptr hdferr = (hdf_error_ptr) cinfo->err;
/* cinfo->err points to an hdf_error_mgr struct */
hdf_error_ptr hdferr = (hdf_error_ptr)cinfo->err;

/* Display the message */
(*cinfo->err->output_message) (cinfo);
/* Display the message */
(*cinfo->err->output_message)(cinfo);

/* Return control to the setjmp point */
longjmp(hdferr->setjmp_buffer, 1);
/* Return control to the setjmp point */
longjmp(hdferr->setjmp_buffer, 1);
}

/*-----------------------------------------------------------------------------
Expand Down Expand Up @@ -350,7 +350,7 @@ DFCIunjpeg(int32 file_id, uint16 tag, uint16 ref, void *image, int32 xdim, int32
HRETURN_ERROR(DFE_NOSPACE, FAIL);

/* Set up the normal JPEG error routines, then override error_exit */
cinfo_ptr->err = jpeg_std_error(&jerr.pub);
cinfo_ptr->err = jpeg_std_error(&jerr.pub);
jerr.pub.error_exit = hdf_error_exit;

/* Establish the setjmp return context for hdf_error_exit to use */
Expand Down

0 comments on commit 0cf3e98

Please sign in to comment.