Patches from pkgsrc-WIP
[oweals/cde.git] / cde / programs / dtlogin / fontpath.c
index 87e490a356fcf44be59ec98db87e93ba95133215..993a1b24f4c0c1687c781a158f68939e822d7a62 100644 (file)
@@ -58,7 +58,7 @@ static int PathInZList(char *path, char *fplist, int listlen);
 static int SeparateParts( char **path );
 
 
-static
+static void
 DebugFontPath(char *note, char **path, int nelems)
 {
     int i;
@@ -103,12 +103,12 @@ ApplyFontPathMods( struct display *d, Display *dpy )
 
     if (d->displayType.location == Foreign) {
         Debug("  Foreign display\n");
-        return;
+        return 0;
     }
 
     if (!(fontPath=XGetFontPath(dpy, &numPaths))) {
         Debug("  Can't get font path\n");
-        return;
+        return 0;
     }
 
     /*
@@ -182,6 +182,8 @@ ApplyFontPathMods( struct display *d, Display *dpy )
     if (fph) free(fph);
     if (fpt) free(fpt);
     XFreeFontPath(fontPath);
+
+    return 1;
 }
 
 /* ___________________________________________________________________