Update prefs.c

Fix compilation error