1
0

declare variables at the beginning of the scope

This commit is contained in:
Michael Gernoth 2010-05-24 11:08:56 +02:00
parent 277c47548a
commit ad0f0d12f7

View File

@ -689,14 +689,16 @@ static void __attribute__ ((constructor)) libusbdriver_init(void) {
setenv("XIL_IMPACT_USE_WINDRIVER", "1", 1); setenv("XIL_IMPACT_USE_WINDRIVER", "1", 1);
#if __WORDSIZE == 32 #if __WORDSIZE == 32
struct utsname un; {
int ret; struct utsname un;
int ret;
ret = uname(&un); ret = uname(&un);
if (ret == 0 && (!strcmp(un.machine, "x86_64"))) { if (ret == 0 && (!strcmp(un.machine, "x86_64"))) {
DPRINTF("setting 32bit personality\n"); DPRINTF("setting 32bit personality\n");
(long)syscall(SYS_personality, PER_LINUX32); (long)syscall(SYS_personality, PER_LINUX32);
}
} }
#endif #endif
} }