From fdc453509abcf4d3c76bedacdc1660a6e9ae9f6c Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 20 Oct 2003 18:17:40 +0000 Subject: [PATCH] Make check_version function return type int, not uint32_t. It returns -1 on error. --- src/common/slurm_protocol_util.c | 2 +- src/common/slurm_protocol_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/slurm_protocol_util.c b/src/common/slurm_protocol_util.c index 2727dce5e22..638c2a3da2e 100644 --- a/src/common/slurm_protocol_util.c +++ b/src/common/slurm_protocol_util.c @@ -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); diff --git a/src/common/slurm_protocol_util.h b/src/common/slurm_protocol_util.h index 35070bc5b00..44c1d839fb6 100644 --- a/src/common/slurm_protocol_util.h +++ b/src/common/slurm_protocol_util.h @@ -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 -- GitLab