From ec23d912178e14d533c910b6cecbf2d53e71272c Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Fri, 18 Jun 2010 20:27:16 +0000 Subject: [PATCH] fix some whitespace --- contribs/perlapi/libslurm/perl/partition.c | 2 +- contribs/perlapi/libslurm/perl/reservation.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/contribs/perlapi/libslurm/perl/partition.c b/contribs/perlapi/libslurm/perl/partition.c index 2d8a9493d94..28518decce0 100644 --- a/contribs/perlapi/libslurm/perl/partition.c +++ b/contribs/perlapi/libslurm/perl/partition.c @@ -85,7 +85,7 @@ int hv_to_update_part_msg(HV* hv, update_part_msg_t* part_msg) { slurm_init_part_desc_msg(part_msg); - + FETCH_FIELD(hv, part_msg, allow_alloc_nodes, charp, FALSE); FETCH_FIELD(hv, part_msg, allow_groups, charp, FALSE); FETCH_FIELD(hv, part_msg, default_time, uint32_t, FALSE); diff --git a/contribs/perlapi/libslurm/perl/reservation.c b/contribs/perlapi/libslurm/perl/reservation.c index 27082c42a7b..2efd4063895 100644 --- a/contribs/perlapi/libslurm/perl/reservation.c +++ b/contribs/perlapi/libslurm/perl/reservation.c @@ -1,5 +1,6 @@ /* - * reservation.c - convert data between reservation related messages and perl HVs + * reservation.c - convert data between reservation related messages + * and perl HVs */ #include <EXTERN.h> @@ -40,7 +41,8 @@ reserve_info_to_hv(reserve_info_t* reserve_info, HV* hv) if(reserve_info->node_inx[j] == -1) break; av_store(avp, j, newSVuv(reserve_info->node_inx[j])); - av_store(avp, j+1, newSVuv(reserve_info->node_inx[j+1])); + av_store(avp, j+1, + newSVuv(reserve_info->node_inx[j+1])); } hv_store_sv(hv, "node_inx", newRV_noinc((SV*)avp)); } @@ -67,7 +69,8 @@ reserve_info_msg_to_hv(reserve_info_msg_t* reserve_info_msg, HV* hv) avp = newAV(); for(i = 0; i < reserve_info_msg->record_count; i ++) { hvp = newHV(); - if (reserve_info_to_hv(reserve_info_msg->reservation_array + i, hvp) + if (reserve_info_to_hv(reserve_info_msg->reservation_array + i, + hvp) < 0) { SvREFCNT_dec(hvp); SvREFCNT_dec(avp); -- GitLab