summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/minilibc.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-02-21 23:01:11 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-02-21 23:01:11 +0000
commit841067b45e61bb8d5a1394d8bba25db1d2a23ea0 (patch)
tree76a8779a4825eef4fa8655ece532a1e34b601615 /mdk-stage1/minilibc.c
parent4fc11a304d40052e9515f660e144d925eff8575c (diff)
downloaddrakx-backup-do-not-use-841067b45e61bb8d5a1394d8bba25db1d2a23ea0.tar
drakx-backup-do-not-use-841067b45e61bb8d5a1394d8bba25db1d2a23ea0.tar.gz
drakx-backup-do-not-use-841067b45e61bb8d5a1394d8bba25db1d2a23ea0.tar.bz2
drakx-backup-do-not-use-841067b45e61bb8d5a1394d8bba25db1d2a23ea0.tar.xz
drakx-backup-do-not-use-841067b45e61bb8d5a1394d8bba25db1d2a23ea0.zip
- fix "init" on ppc (do not use minilibc on non-i386 arch's)
- fix segfault of dietlibc-linked apps (broken va_stuff in dietlibc) - cleanup of "init"
Diffstat (limited to 'mdk-stage1/minilibc.c')
-rw-r--r--mdk-stage1/minilibc.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/mdk-stage1/minilibc.c b/mdk-stage1/minilibc.c
index ac0ffe334..d8ff88852 100644
--- a/mdk-stage1/minilibc.c
+++ b/mdk-stage1/minilibc.c
@@ -203,32 +203,6 @@ char * strstr(char *haystack, char *needle)
return NULL;
}
-void print_int(int fd, int i)
-{
- char buf[10];
- char * chptr = buf + 9;
- int j = 0;
-
- if (i < 0)
- {
- write(1, "-", 1);
- i = -1 * i;
- }
-
- while (i)
- {
- *chptr-- = '0' + (i % 10);
- j++;
- i = i / 10;
- }
-
- write(fd, chptr + 1, j);
-}
-
-void print_str(int fd, char * string)
-{
- write(fd, string, strlen(string));
-}
/* Minimum printf which handles only characters, %d's and %s's */
void printf(char * fmt, ...)
@@ -274,3 +248,4 @@ void printf(char * fmt, ...)
}
}
}
+