From da941a9df6e374b938483a6920200cba37ac1e45 Mon Sep 17 00:00:00 2001 From: tewk <tewk@unknown> Date: Tue, 27 Aug 2002 14:55:47 +0000 Subject: [PATCH] fixed returncode problem --- src/common/slurm_protocol_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/slurm_protocol_util.c b/src/common/slurm_protocol_util.c index 7529ffd20cd..62e2d95f7a3 100644 --- a/src/common/slurm_protocol_util.c +++ b/src/common/slurm_protocol_util.c @@ -15,7 +15,7 @@ uint32_t check_header_version( header_t * header) if ( header -> version != SLURM_PROTOCOL_VERSION ) { debug ( "Invalid Protocol Version %d ", header -> version ) ; - return SLURM_PROTOCOL_VERSION_ERROR ; + slurm_seterrno_ret ( SLURM_PROTOCOL_VERSION_ERROR ) ; } return SLURM_PROTOCOL_SUCCESS ; } @@ -40,7 +40,7 @@ uint32_t check_io_stream_header_version( slurm_io_stream_header_t * header) if ( header -> version != SLURM_PROTOCOL_VERSION ) { debug ( "Invalid IO Stream Protocol Version %d ", header -> version ) ; - return SLURM_PROTOCOL_IO_STREAM_VERSION_ERROR ; + slurm_seterrno_ret ( SLURM_PROTOCOL_IO_STREAM_VERSION_ERROR ) ; } return SLURM_PROTOCOL_SUCCESS ; } -- GitLab