cookie_SetBehaviorPref(COOKIE_Accept); } else { cookie_SetBehaviorPref((COOKIE_BehaviorEnum)n);
n = COOKIE_Accept;
COOKIE_RegisterCookiePrefCallbacks(void) {  PRInt32 n;  PRBool x;  nsresult rv;  NS_WITH_SERVICE(nsIPref, prefs, "component://netscape/preferences", &rv);  if (NS_FAILED(prefs->GetIntPref(cookie_behaviorPref, &n))) {    cookie_SetBehaviorPref(COOKIE_Accept);  } else {    cookie_SetBehaviorPref((COOKIE_BehaviorEnum)n);  }  prefs->RegisterCallback(cookie_behaviorPref, cookie_BehaviorPrefChanged, NULL);  if (NS_FAILED(prefs->GetBoolPref(cookie_warningPref, &x))) {    x = PR_FALSE;  }  cookie_SetWarningPref(x);  prefs->RegisterCallback(cookie_warningPref, cookie_WarningPrefChanged, NULL);  if (NS_FAILED(prefs->GetIntPref(image_behaviorPref, &n))) {    image_SetBehaviorPref(COOKIE_Accept);  } else {    image_SetBehaviorPref((COOKIE_BehaviorEnum)n);  }  prefs->RegisterCallback(image_behaviorPref, image_BehaviorPrefChanged, NULL);  if (NS_FAILED(prefs->GetBoolPref(image_warningPref, &x))) {    x = PR_FALSE;  }  image_SetWarningPref(x);  prefs->RegisterCallback(image_warningPref, image_WarningPrefChanged, NULL);}