aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-01-14 12:47:12 -0800
committerColin Cross <ccross@android.com>2010-01-14 12:47:12 -0800
commit1b1fd61295d76b734f68309d0057699a1ba1cc37 (patch)
tree56b71b4e4430adb4b4355ee1a1f98777194000b9
parenteab453c612d6d422f863c31da67f00bc4beec914 (diff)
downloadsystem_core-1b1fd61295d76b734f68309d0057699a1ba1cc37.tar.gz
system_core-1b1fd61295d76b734f68309d0057699a1ba1cc37.tar.bz2
system_core-1b1fd61295d76b734f68309d0057699a1ba1cc37.zip
Remove definitions that are now in bionic libc
-rw-r--r--sh/miscbltin.c2
-rw-r--r--toolbox/newfs_msdos.c29
2 files changed, 0 insertions, 31 deletions
diff --git a/sh/miscbltin.c b/sh/miscbltin.c
index 1a8e252b..d89029af 100644
--- a/sh/miscbltin.c
+++ b/sh/miscbltin.c
@@ -277,8 +277,6 @@ umaskcmd(int argc, char **argv)
return 0;
}
-typedef unsigned long rlim_t;
-
#if 1
/*
* ulimit builtin
diff --git a/toolbox/newfs_msdos.c b/toolbox/newfs_msdos.c
index 49042c4a..8e611c60 100644
--- a/toolbox/newfs_msdos.c
+++ b/toolbox/newfs_msdos.c
@@ -235,35 +235,6 @@ static void setstr(u_int8_t *, const char *, size_t);
static void usage(void);
#ifdef ANDROID
-static void err(int val, const char *fmt, ...) {
- va_list ap;
- va_start(ap, fmt);
- char *fmt2;
- asprintf(&fmt2, "%s\n", fmt);
- vfprintf(stderr, fmt2, ap);
- free(fmt2);
- va_end(ap);
-}
-
-static void errx(int val, const char *fmt, ...) {
- va_list ap;
- va_start(ap, fmt);
- char *fmt2;
- asprintf(&fmt2, "%s\n", fmt);
- vfprintf(stderr, fmt2, ap);
- free(fmt2);
- va_end(ap);
-}
-
-static void warnx(const char *fmt, ...) {
- va_list ap;
- va_start(ap, fmt);
- char *fmt2;
- asprintf(&fmt2, "%s\n", fmt);
- vfprintf(stderr, fmt2, ap);
- free(fmt2);
- va_end(ap);
-}
#define powerof2(x) ((((x) - 1) & (x)) == 0)
#define howmany(x, y) (((x) + ((y) - 1)) / (y))
#define MAX(x,y) ((x) > (y) ? (x) : (y))