Skip to content
Snippets Groups Projects
Commit fdc45350 authored by Moe Jette's avatar Moe Jette
Browse files

Make check_version function return type int, not uint32_t. It returns -1 on error.

parent 0f6b47d6
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@
* IN header - the message header received
* RET - SLURM error code
*/
uint32_t check_header_version(header_t * header)
int check_header_version(header_t * header)
{
if (header->version != SLURM_PROTOCOL_VERSION) {
debug("Invalid Protocol Version %d", header->version);
......
......@@ -52,7 +52,7 @@
* IN header - the message header received
* RET - SLURM error code
*/
extern uint32_t check_header_version(header_t * header);
extern int check_header_version(header_t * header);
/*
* init_header - simple function to create a header, always insuring that
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment