diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-09-01 23:36:20 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-09-01 23:36:20 +0000 |
commit | 8ec51135b6733491e4980925a919e926609674fe (patch) | |
tree | ddd3a668601acaa5884124d1ddee4967364bbeec /firmware/target | |
parent | f05cdc46f23bf28d31dfc4fc2ebe4d20e4d6f961 (diff) |
Android: Fix two warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27975 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/android/dir-target.h | 1 | ||||
-rw-r--r-- | firmware/target/hosted/android/system-android.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/hosted/android/dir-target.h b/firmware/target/hosted/android/dir-target.h index 4516215d62..44ea23d4ad 100644 --- a/firmware/target/hosted/android/dir-target.h +++ b/firmware/target/hosted/android/dir-target.h @@ -33,5 +33,6 @@ extern DIR* _opendir(const char* name); extern int _mkdir(const char* name); extern int _closedir(DIR* dir); extern struct dirent *_readdir(DIR* dir); +extern void fat_size(unsigned long *size, unsigned long *free); #endif /* __DIR_TARGET_H__ */ diff --git a/firmware/target/hosted/android/system-android.c b/firmware/target/hosted/android/system-android.c index 87b6584135..7d1fe9d458 100644 --- a/firmware/target/hosted/android/system-android.c +++ b/firmware/target/hosted/android/system-android.c @@ -39,6 +39,7 @@ uintptr_t *stackbegin; uintptr_t *stackend; extern int main(void); +extern void powermgmt_init_target(void); /* this is the entry point of the android app initially called by jni */ JNIEXPORT void JNICALL Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this) @@ -56,7 +57,8 @@ Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this) RockboxService_instance = this; RockboxService_class = (*env)->GetObjectClass(env, this); - + /* no better place yet, most of powermgmt.c is #ifdef'd out for non-native + * builds */ powermgmt_init_target(); main(); } |