Some cleanups.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2317 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2002-12-30 11:17:36 +00:00
parent 381271419d
commit 2d4d170f83
+9 -9
View File
@@ -153,11 +153,11 @@ arch_cpu_user_memcpy(void *to, const void *from, size_t size, addr *fault_handle
*tmp++ = *s++; *tmp++ = *s++;
*fault_handler = 0; *fault_handler = 0;
return 0; return 0;
error: error:
*fault_handler = 0; *fault_handler = 0;
return ERR_VM_BAD_USER_MEMORY; return B_BAD_ADDRESS;
} }
@@ -170,11 +170,11 @@ arch_cpu_user_strcpy(char *to, const char *from, addr *fault_handler)
; ;
*fault_handler = 0; *fault_handler = 0;
return 0; return 0;
error: error:
*fault_handler = 0; *fault_handler = 0;
return ERR_VM_BAD_USER_MEMORY; return B_BAD_ADDRESS;
} }
@@ -187,11 +187,11 @@ arch_cpu_user_strncpy(char *to, const char *from, size_t size, addr *fault_handl
; ;
*fault_handler = 0; *fault_handler = 0;
return 0; return 0;
error: error:
*fault_handler = 0; *fault_handler = 0;
return ERR_VM_BAD_USER_MEMORY; return B_BAD_ADDRESS;
} }
@@ -209,7 +209,7 @@ arch_cpu_user_strlcpy(char *to, const char *from, size_t size, addr *faultHandle
error: error:
*faultHandler = 0; *faultHandler = 0;
return ERR_VM_BAD_USER_MEMORY; return B_BAD_ADDRESS;
} }
@@ -224,11 +224,11 @@ arch_cpu_user_memset(void *s, char c, size_t count, addr *fault_handler)
*xs++ = c; *xs++ = c;
*fault_handler = 0; *fault_handler = 0;
return 0; return 0;
error: error:
*fault_handler = 0; *fault_handler = 0;
return ERR_VM_BAD_USER_MEMORY; return B_BAD_ADDRESS;
} }