fixed more splint warnings in g_main.c