X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Fprograms%2Fdtlogin%2Ffontpath.c;h=993a1b24f4c0c1687c781a158f68939e822d7a62;hb=1fdcd4c93d2edf000fc8e6278991774ec9e396e7;hp=c37e2b8373389bf1835e8db17d81b7f8c812fd76;hpb=c884521619ded86baea5e0a74c8d0d2234c232fe;p=oweals%2Fcde.git diff --git a/cde/programs/dtlogin/fontpath.c b/cde/programs/dtlogin/fontpath.c index c37e2b83..993a1b24 100644 --- a/cde/programs/dtlogin/fontpath.c +++ b/cde/programs/dtlogin/fontpath.c @@ -39,7 +39,11 @@ # include # include # include +#if defined(__FreeBSD__) && OSMAJORVERSION > 8 +# include +#else # include +#endif # include "vgproto.h" /* @@ -54,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; @@ -99,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; } /* @@ -178,6 +182,8 @@ ApplyFontPathMods( struct display *d, Display *dpy ) if (fph) free(fph); if (fpt) free(fpt); XFreeFontPath(fontPath); + + return 1; } /* ___________________________________________________________________