Fix function prototype for g_login