WMIConfig compilation warning and segfault

Niels Heyvaert nielsheyvaert at hotmail.com
Sat Feb 27 21:49:57 CET 2010


Hi,

Still struggling with wmiconfig.

I managed to compile, as mentioned before, but still a few warnings remain:

wmiconfig.c: In function 'getPhyMode':
wmiconfig.c:2741: warning: missing initializer
wmiconfig.c:2741: warning: (near initialization for 'phyModeMap[5].phyMode')
wmiconfig.c: In function 'main':
wmiconfig.c:465: warning: 'pmkidUserInfo.numPMKIDUser' may be used uninitialized in this function
wmiconfig.c:465: warning: 'pmkidUserInfo.pmkidInfo' may be used uninitialized in this function
wmiconfig.c:473: warning: 'ssid' may be used uninitialized in this function

When executing it displays the help message. But when trying the famous "wmiconfig -i eth0 --power maxperf" the whole thing just segfaults.

Is it linked to the warnings I get during compilation?

A bit in the dark here.

Thanks for your help.

Niels.
--
Microsoft gives you windows, Linux gives you the whole house.
 		 	   		  
_________________________________________________________________
De nieuwe Windows 7: vind de juiste pc voor jou. Meer informatie.
http://windows.microsoft.com/shop


More information about the devel mailing list