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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user