input: move default bind handling to input core
[libpicofe.git] / linux / plat.c
index 5788d1d..b7152b5 100644 (file)
@@ -1,4 +1,14 @@
-#define _GNU_SOURCE
+/*
+ * (C) GraÅžvydas "notaz" Ignotas, 2008-2010
+ *
+ * This work is licensed under the terms of any of these licenses
+ * (at your option):
+ *  - GNU GPL, version 2 or later.
+ *  - GNU LGPL, version 2.1 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#define _GNU_SOURCE 1
 #include <stdio.h>
 #include <string.h>
 #include <stdarg.h>
@@ -38,7 +48,7 @@ int plat_get_root_dir(char *dst, int len)
                        break;
                }
 
-       return 0;
+       return j;
 }
 
 #ifdef __GP2X__