mirror of https://gitee.com/openkylin/libvirt.git
* src/util.c: flag unused parameters, by Maximilian Wilhelm
daniel
This commit is contained in:
parent
c29d092905
commit
de4950b200
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Mar 20 21:43:57 CET 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/util.c: flag unused parameters, by Maximilian Wilhelm
|
||||||
|
|
||||||
Fri Mar 20 13:16:01 CET 2009 Daniel Veillard <veillard@redhat.com>
|
Fri Mar 20 13:16:01 CET 2009 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/libvirt_private.syms src/storage_backend_fs.c src/util.c
|
* src/libvirt_private.syms src/storage_backend_fs.c src/util.c
|
||||||
|
|
|
@ -121,14 +121,14 @@ ssize_t safewrite(int fd, const void *buf, size_t count)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_POSIX_FALLOCATE
|
#ifdef HAVE_POSIX_FALLOCATE
|
||||||
int safezero(int fd, int flags, off_t offset, off_t len)
|
int safezero(int fd, int flags ATTRIBUTE_UNUSED, off_t offset, off_t len)
|
||||||
{
|
{
|
||||||
return posix_fallocate(fd, offset, len);
|
return posix_fallocate(fd, offset, len);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
int safezero(int fd, int flags, off_t offset, off_t len)
|
int safezero(int fd, int flags ATTRIBUTE_UNUSED, off_t offset, off_t len)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
char *buf;
|
char *buf;
|
||||||
|
@ -152,7 +152,7 @@ int safezero(int fd, int flags, off_t offset, off_t len)
|
||||||
|
|
||||||
#else /* HAVE_MMAP */
|
#else /* HAVE_MMAP */
|
||||||
|
|
||||||
int safezero(int fd, int flags, off_t offset, off_t len)
|
int safezero(int fd, int flags ATTRIBUTE_UNUSED, off_t offset, off_t len)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
Loading…
Reference in New Issue