]> git.proxmox.com Git - qemu.git/blobdiff - linux-user/uaccess.c
slirp: Canonicalize restrict syntax
[qemu.git] / linux-user / uaccess.c
index 4d506935f8cad50c48c6c3ee85fee40d556ba47a..a4d108c2f7a0e9afba8cb8b26b34239391f5bec1 100644 (file)
@@ -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)