Skip to content

Commit

Permalink
Change a typedef function pointer name per RFC 7 style revision
Browse files Browse the repository at this point in the history
  • Loading branch information
dongahn committed May 28, 2015
1 parent 47f9119 commit 870ec2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/libjsc/jstatctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ typedef struct {
} stab_t;

typedef struct {
JSC_CB_PTR *cb;
jsc_handler_f cb;
void *arg;
} cb_pair_t;

Expand Down Expand Up @@ -828,7 +828,7 @@ static int reg_newjob_hdlr (flux_t h, KVSSetInt64F *func)
* *
******************************************************************************/

int jsc_notify_status (flux_t h, JSC_CB_PTR *func, void *d)
int jsc_notify_status (flux_t h, jsc_handler_f func, void *d)
{
int rc = -1;
cb_pair_t *c = NULL;
Expand Down
4 changes: 2 additions & 2 deletions src/modules/libjsc/jstatctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ typedef enum {
J_FOR_RENT /*!< Space For Rent */
} job_state_t;

typedef int (JSC_CB_PTR)(json_object *base_jcb, void *arg, int errnum);
typedef int (*jsc_handler_f)(json_object *base_jcb, void *arg, int errnum);

/* TODO: find a better way to manage this hierarchical
* JCB attributes space
Expand Down Expand Up @@ -92,7 +92,7 @@ typedef int (JSC_CB_PTR)(json_object *base_jcb, void *arg, int errnum);
* multiple times. The callbacks will be invoked in the order
* they are registered. Returns 0 on success; otherwise -1.
*/
int jsc_notify_status (flux_t h, JSC_CB_PTR *callback, void *d);
int jsc_notify_status (flux_t h, jsc_handler_f callback, void *d);

/**
* Query the "key" attribute of JCB of "jobid." The JCB info on this attribute
Expand Down

0 comments on commit 870ec2e

Please sign in to comment.