Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 09a42c9

Browse files
committedDec 10, 2016
HOST-RESOURCES-MIB: Provide Mark_HRSW_token() and Release_HRSW_token() as functions
This patch does not change any functionality.
1 parent 8faa636 commit 09a42c9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎agent/mibgroup/host/hr_swinst.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,8 @@ extern int Get_Next_HR_SWInst(void);
146146
extern void End_HR_SWInst(void);
147147
extern int Save_HR_SW_info(int ix);
148148

149-
#ifdef HAVE_LIBRPM
150149
static void Mark_HRSW_token(void);
151150
static void Release_HRSW_token(void);
152-
#else
153-
#define Mark_HRSW_token()
154-
#define Release_HRSW_token()
155-
#endif
156151

157152

158153
#define HRSWINST_CHANGE 1
@@ -705,7 +700,6 @@ Save_HR_SW_info(int ix)
705700
return 0;
706701
}
707702

708-
#ifdef HAVE_LIBRPM
709703
void
710704
Mark_HRSW_token(void)
711705
{
@@ -714,14 +708,15 @@ Mark_HRSW_token(void)
714708
void
715709
Release_HRSW_token(void)
716710
{
711+
#ifdef HAVE_LIBRPM
717712
SWI_t *swi = &_myswi; /* XXX static for now */
718713
if (swi != NULL && swi->swi_h) {
719714
headerFree(swi->swi_h);
720715
swi->swi_h = NULL;
721716
swi->swi_prevx = -1;
722717
}
723-
}
724718
#endif /* HAVE_LIBRPM */
719+
}
725720

726721
void
727722
End_HR_SWInst(void)

0 commit comments

Comments
 (0)
Please sign in to comment.