Skip to content

Commit

Permalink
modules/job-ingest: declare temp var conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Oct 12, 2018
1 parent e79f013 commit 8235e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/job-ingest/job-ingest.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ static void submit_cb (flux_t *h, flux_msg_handler_t *mh,
int priority;
int64_t userid_signer;
const char *mech_type;
uint32_t userid_signer_u32;

if (flux_request_unpack (msg, NULL, "{s:s s:i s:i}",
"J", &J,
Expand All @@ -415,6 +414,7 @@ static void submit_cb (flux_t *h, flux_msg_handler_t *mh,
goto error;
}
#else
uint32_t userid_signer_u32;
/* Simplified unwrap only understands mech=none.
* Unlike, flux-security version, returned payload must be freed,
* and returned userid is a uint32_t.
Expand Down

0 comments on commit 8235e0a

Please sign in to comment.