Skip to content
Snippets Groups Projects
Commit cc4eb9c9 authored by Danny Auble's avatar Danny Auble
Browse files

fixed minor warnings

parent 1e2c155b
No related branches found
No related tags found
No related merge requests found
...@@ -501,16 +501,15 @@ slurm_get_select_jobinfo_char_type(slurm_t self, SV* jobinfo = NULL, int data_ty ...@@ -501,16 +501,15 @@ slurm_get_select_jobinfo_char_type(slurm_t self, SV* jobinfo = NULL, int data_ty
U16 U16
slurm_get_select_nodeinfo_subcnt(slurm_t self, SV *nodeinfo, int state) slurm_get_select_nodeinfo_subcnt(slurm_t self, SV *nodeinfo, int state)
CODE: CODE:
RETVAL = -1;
if(nodeinfo) { if(nodeinfo) {
uint16_t tmp16; uint16_t tmp16;
RETVAL = slurm_get_select_nodeinfo( int rc = slurm_get_select_nodeinfo(
(select_nodeinfo_t *)SV2ptr(nodeinfo), (select_nodeinfo_t *)SV2ptr(nodeinfo),
SELECT_NODEDATA_SUBCNT, state, &tmp16); SELECT_NODEDATA_SUBCNT, state, &tmp16);
if(RETVAL != -1) { if(rc != -1) {
RETVAL = tmp16; RETVAL = tmp16;
} }
} else {
RETVAL = -1;
} }
OUTPUT: OUTPUT:
RETVAL RETVAL
...@@ -518,16 +517,15 @@ slurm_get_select_nodeinfo_subcnt(slurm_t self, SV *nodeinfo, int state) ...@@ -518,16 +517,15 @@ slurm_get_select_nodeinfo_subcnt(slurm_t self, SV *nodeinfo, int state)
U16 U16
slurm_get_select_nodeinfo_subgrp_size(slurm_t self, SV *nodeinfo) slurm_get_select_nodeinfo_subgrp_size(slurm_t self, SV *nodeinfo)
CODE: CODE:
RETVAL = -1;
if(nodeinfo) { if(nodeinfo) {
uint16_t tmp16; uint16_t tmp16;
RETVAL = slurm_get_select_nodeinfo( int rc = slurm_get_select_nodeinfo(
(select_nodeinfo_t *)SV2ptr(nodeinfo), (select_nodeinfo_t *)SV2ptr(nodeinfo),
SELECT_NODEDATA_SUBGRP_SIZE, 0, &tmp16); SELECT_NODEDATA_SUBGRP_SIZE, 0, &tmp16);
if(RETVAL != -1) { if(rc != -1) {
RETVAL = tmp16; RETVAL = tmp16;
} }
} else {
RETVAL = -1;
} }
OUTPUT: OUTPUT:
RETVAL RETVAL
......
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