Skip to content
Browse files

const fix for memcpy_to_child

  • Loading branch information...
1 parent f5d1d89 commit fff1db52d45a348c7da2fb91a0b41b894e32bf2a @nelhage committed Jan 17, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 ptrace.c
  2. +1 −1 ptrace.h
View
2 ptrace.c
@@ -156,7 +156,7 @@ unsigned long ptrace_remote_syscall(struct ptrace_child *child,
return rv;
}
-int ptrace_memcpy_to_child(struct ptrace_child *child, child_addr_t dst, void *src, size_t n) {
+int ptrace_memcpy_to_child(struct ptrace_child *child, child_addr_t dst, const void *src, size_t n) {
int err;
unsigned long scratch;
View
2 ptrace.h
@@ -44,5 +44,5 @@ unsigned long ptrace_remote_syscall(struct ptrace_child *child,
unsigned long p2, unsigned long p3,
unsigned long p4, unsigned long p5);
-int ptrace_memcpy_to_child(struct ptrace_child *, child_addr_t, void*, size_t);
+int ptrace_memcpy_to_child(struct ptrace_child *, child_addr_t, const void*, size_t);
int ptrace_memcpy_from_child(struct ptrace_child *, void*, child_addr_t, size_t);

0 comments on commit fff1db5

Please sign in to comment.
Something went wrong with that request. Please try again.