X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fxdg-user-dir-lookup.c;h=669fe2f01985537db86d996c0b0b3aae28b67e39;hb=4207c30cf856a79bc6e23219bf43554470cd4b0b;hp=e17214637d6f477083a867604bb13c4cc56d589e;hpb=d92ed14d7be9cab0ee447e49fea73d324e2ec19d;p=evince.git diff --git a/shell/xdg-user-dir-lookup.c b/shell/xdg-user-dir-lookup.c index e1721463..669fe2f0 100644 --- a/shell/xdg-user-dir-lookup.c +++ b/shell/xdg-user-dir-lookup.c @@ -25,12 +25,13 @@ SOFTWARE. */ +#include #include #include #include -static char * +char * xdg_user_dir_lookup (const char *type) { FILE *file; @@ -149,17 +150,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 \n", argv[0]); - exit (1); - } - - printf ("%s\n", xdg_user_dir_lookup (argv[1])); - return 0; -} -#endif