mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Fix compiler warnings triggered by building against the musl C library
See also https://github.com/bvanassche/scst/issues/23. Reported-by: Lucian Cristian lucian.cristian@gmail.com git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9001 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
@@ -61,7 +61,7 @@ struct vdisk_dev {
|
||||
uint32_t block_size;
|
||||
uint64_t nblocks;
|
||||
int block_shift;
|
||||
loff_t file_size; /* in bytes */
|
||||
int64_t file_size; /* in bytes */
|
||||
void *(*alloc_fn)(size_t size);
|
||||
|
||||
pthread_mutex_t dev_mutex;
|
||||
|
||||
Reference in New Issue
Block a user