I think one aspect of this is right, one is wrong
-void get_io_perms(void) +void get_io_perms()
The void should be left in here I think.
{ #if defined (__sun) && (defined(__i386) || defined(__amd64)) if (sysi86(SI86V86, V86SC_IOPL, PS_IOPL) != 0) { @@ -102,7 +102,7 @@ { int ret = 0;
- get_io_perms(void); + get_io_perms();
removing it here is the right thing.
ron