slist.h: rename SLIST_ to ISCSI_LIST_ to avoid clash on *BSD

Rename the macros for managing the linked lists from SLIST_* to ISCSI_LIST_*
to avoid a clash on *BSD which already have other macros SLIST_*

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2014-05-07 06:44:19 -07:00
parent fe669580ee
commit 717b95cb8a
8 changed files with 39 additions and 39 deletions

View File

@@ -70,7 +70,7 @@ scsi_free_scsi_task(struct scsi_task *task)
return;
while ((mem = task->mem)) {
SLIST_REMOVE(&task->mem, mem);
ISCSI_LIST_REMOVE(&task->mem, mem);
free(mem);
}
@@ -108,7 +108,7 @@ scsi_malloc(struct scsi_task *task, size_t size)
return NULL;
}
memset(mem, 0, sizeof(struct scsi_allocated_memory) + size);
SLIST_ADD(&task->mem, mem);
ISCSI_LIST_ADD(&task->mem, mem);
return &mem->buf[0];
}