summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-02-26 10:20:28 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-02-26 10:20:28 +0000
commitaf59e2ac3114a16e25a76c611a179670b101c0b1 (patch)
tree816dbde36c57b92b5c4573963c3fbcf583100f4a /apps
parent8bdea23b888422a31c61276dd196091cf773d8b9 (diff)
downloadrockbox-af59e2ac3114a16e25a76c611a179670b101c0b1.tar.gz
rockbox-af59e2ac3114a16e25a76c611a179670b101c0b1.zip
made 'make' in tools/database work again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 7bf9ac01f5..d7a64b3733 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -25,7 +25,6 @@
25#include "lcd.h" 25#include "lcd.h"
26#include "file.h" 26#include "file.h"
27#ifdef __PCTOOL__ 27#ifdef __PCTOOL__
28#include <stdint.h>
29#include <stdarg.h> 28#include <stdarg.h>
30#include <stdio.h> 29#include <stdio.h>
31#ifdef WPSEDITOR 30#ifdef WPSEDITOR
@@ -766,16 +765,6 @@ char* strrsplt(char* str, int c)
766 return s; 765 return s;
767} 766}
768 767
769char* skip_whitespace(char* const str)
770{
771 char *s = str;
772
773 while (isspace(*s))
774 s++;
775
776 return s;
777}
778
779/* Test file existence, using dircache of possible */ 768/* Test file existence, using dircache of possible */
780bool file_exists(const char *file) 769bool file_exists(const char *file)
781{ 770{
@@ -839,6 +828,16 @@ char *strip_extension(char* buffer, int buffer_size, const char *filename)
839} 828}
840#endif /* !defined(__PCTOOL__) */ 829#endif /* !defined(__PCTOOL__) */
841 830
831char* skip_whitespace(char* const str)
832{
833 char *s = str;
834
835 while (isspace(*s))
836 s++;
837
838 return s;
839}
840
842/* Format time into buf. 841/* Format time into buf.
843 * 842 *
844 * buf - buffer to format to. 843 * buf - buffer to format to.