]> git.wh0rd.org - fontconfig.git/commitdiff
Update to Xft version 2
authorKeith Packard <keithp@keithp.com>
Fri, 15 Feb 2002 07:36:14 +0000 (07:36 +0000)
committerKeith Packard <keithp@keithp.com>
Fri, 15 Feb 2002 07:36:14 +0000 (07:36 +0000)
fc-cache/fc-cache.c

index 6e84ccdb75cc94c18e05e7e4e776a8e12e67fcd5..2bb012d2025174fdbcbd4760dec821dcfa501d79 100644 (file)
@@ -47,7 +47,8 @@ extern int optind, opterr, optopt;
 #endif
 #endif
 
-void usage (char *program)
+static void
+usage (char *program)
 {
     fprintf (stderr, "usage: %s [-vV?] [--verbose] [--version] [--help] [dirs]\n",
             program);
@@ -65,7 +66,7 @@ main (int argc, char **argv)
 {
     int                ret = 0;
     FcFontSet  *set;
-    char       **dirs;
+    FcChar8    **dirs;
     int                verbose = 0;
     int                i;
 #if HAVE_GETOPT_LONG || HAVE_GETOPT
@@ -100,7 +101,7 @@ main (int argc, char **argv)
        return 1;
     }
     if (argv[i])
-       dirs = argv+i;
+       dirs = (FcChar8 **) (argv+i);
     else
        dirs = FcConfigGetDirs (0);
     /*