]> www.fi.muni.cz Git - evince.git/blobdiff - shell/xdg-user-dir-lookup.c
Fixup the previous commit
[evince.git] / shell / xdg-user-dir-lookup.c
index e17214637d6f477083a867604bb13c4cc56d589e..00bcefa6a76646adc58b69397312416b80415caa 100644 (file)
@@ -30,7 +30,7 @@
 #include <string.h>
 
 
-static char *
+char *
 xdg_user_dir_lookup (const char *type)
 {
   FILE *file;
@@ -149,17 +149,3 @@ xdg_user_dir_lookup (const char *type)
     return strdup (home_dir);
 }
 
-#ifdef STANDALONE
-int
-main (int argc, char *argv[])
-{
-  if (argc != 2)
-    {
-      fprintf (stderr, "Usage %s <dir-type>\n", argv[0]);
-      exit (1);
-    }
-  
-  printf ("%s\n", xdg_user_dir_lookup (argv[1]));
-  return 0;
-}
-#endif