aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-01 18:24:44 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-01 18:24:44 +0000
commitd43277c534904dc31d14bfb0dc934f3cfbe2dab5 (patch)
tree272f8131c34141ffc369fbd40e369a02172584e6 /bsd-user
parent57a943c41fd8ae23647f34b4b2ff7707561eebe8 (diff)
downloadqemu-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.zip
qemu-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.tar.gz
qemu-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.tar.bz2
Fix missing strnlen problems
Fix missing strnlen (a GNU extension) problems by using qemu_strnlen used for user emulators also for system emulators. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/uaccess.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c
index cc51449..9ec1b23 100644
--- a/bsd-user/uaccess.c
+++ b/bsd-user/uaccess.c
@@ -37,17 +37,6 @@ abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t len)
return ret;
}
-/* XXX: use host strnlen if available ? */
-static int qemu_strnlen(const char *s, int max_len)
-{
- int i;
- for(i = 0; i < max_len; i++) {
- if (s[i] == '\0')
- break;
- }
- return i;
-}
-
/* Return the length of a string in target memory or -TARGET_EFAULT if
access error */
abi_long target_strlen(abi_ulong guest_addr1)