Ensure functions return a value
otherwise, gcc errored out because non-void functions are supposed to return a value. Alternatively, we could change the declaration to `void`.
This commit is contained in:
parent
c8c5f77595
commit
679e69be89
3 changed files with 3 additions and 1 deletions
|
|
@ -235,6 +235,7 @@ int scsi_write(struct scsi_device * dev, const unsigned char * data, size_t data
|
|||
| Free the buffer |
|
||||
\*-----------------------------------------------------*/
|
||||
free(buffer);
|
||||
return 0;
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue