mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: fix #ifdef indentation from previous commit
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
c46ab0d48f
commit
5ee928624e
@ -32,9 +32,9 @@
|
|||||||
|
|
||||||
static int (*real_access)(const char *path, int mode);
|
static int (*real_access)(const char *path, int mode);
|
||||||
static int (*real_open)(const char *path, int flags, ...);
|
static int (*real_open)(const char *path, int flags, ...);
|
||||||
#ifdef __GLIBC__
|
# ifdef __GLIBC__
|
||||||
static int (*real___open_2)(const char *path, int flags);
|
static int (*real___open_2)(const char *path, int flags);
|
||||||
#endif /* ! __GLIBC__ */
|
# endif /* ! __GLIBC__ */
|
||||||
static int (*real_close)(int fd);
|
static int (*real_close)(int fd);
|
||||||
static DIR * (*real_opendir)(const char *name);
|
static DIR * (*real_opendir)(const char *name);
|
||||||
static char *(*real_virFileCanonicalizePath)(const char *path);
|
static char *(*real_virFileCanonicalizePath)(const char *path);
|
||||||
@ -957,9 +957,9 @@ init_syms(void)
|
|||||||
|
|
||||||
VIR_MOCK_REAL_INIT(access);
|
VIR_MOCK_REAL_INIT(access);
|
||||||
VIR_MOCK_REAL_INIT(open);
|
VIR_MOCK_REAL_INIT(open);
|
||||||
#ifdef __GLIBC__
|
# ifdef __GLIBC__
|
||||||
VIR_MOCK_REAL_INIT(__open_2);
|
VIR_MOCK_REAL_INIT(__open_2);
|
||||||
#endif /* ! __GLIBC__ */
|
# endif /* ! __GLIBC__ */
|
||||||
VIR_MOCK_REAL_INIT(close);
|
VIR_MOCK_REAL_INIT(close);
|
||||||
VIR_MOCK_REAL_INIT(opendir);
|
VIR_MOCK_REAL_INIT(opendir);
|
||||||
VIR_MOCK_REAL_INIT(virFileCanonicalizePath);
|
VIR_MOCK_REAL_INIT(virFileCanonicalizePath);
|
||||||
@ -1088,7 +1088,7 @@ open(const char *path, int flags, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
# ifdef __GLIBC__
|
||||||
/* in some cases this function may not be present in headers, so we need
|
/* in some cases this function may not be present in headers, so we need
|
||||||
* a declaration to silence the complier */
|
* a declaration to silence the complier */
|
||||||
int
|
int
|
||||||
@ -1118,7 +1118,7 @@ __open_2(const char *path, int flags)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif /* ! __GLIBC__ */
|
# endif /* ! __GLIBC__ */
|
||||||
|
|
||||||
DIR *
|
DIR *
|
||||||
opendir(const char *path)
|
opendir(const char *path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user