summaryrefslogtreecommitdiff
path: root/lib/ipmi_sdradd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipmi_sdradd.c')
-rw-r--r--lib/ipmi_sdradd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ipmi_sdradd.c b/lib/ipmi_sdradd.c
index f3bc271..f5bf78a 100644
--- a/lib/ipmi_sdradd.c
+++ b/lib/ipmi_sdradd.c
@@ -512,7 +512,6 @@ int ipmi_parse_range_list(const char *rangeList, unsigned char * pHexList)
int
ipmi_sdr_add_from_list(struct ipmi_intf *intf, const char *rangeList)
{
- int i;
int rc = 0;
int slave_addr;
int myaddr = intf->target_addr;
@@ -575,7 +574,6 @@ ipmi_sdr_add_from_list(struct ipmi_intf *intf, const char *rangeList)
static int
ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
{
- struct sdr_get_rs header;
int rc = 0;
int fd;
uint8_t binHdr[5];
@@ -633,6 +631,7 @@ ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
queue->tail->next = sdrr;
queue->tail = sdrr;
}
+ close(fd);
return rc;
}