[CRIU] [crtools-bot for Cyrill Gorcunov ] syscall: Drop unneeded
addr variable
Cyrill Gorcunov
gorcunov at openvz.org
Fri Feb 10 08:38:43 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 4749ef2626310ce5fa1c72ca1c705e3429b2df23
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Fri Feb 10 17:32:08 2012 +0400
syscall: Drop unneeded addr variable
Otherwise it become a global variable propagated
even to files where it must has no reference to
(such as parasite code)
Symbol table '.symtab' contains 22 entries:
Num: Value Size Type Bind Vis Ndx Name
...
4: 0000000000000000 0 FILE LOCAL DEFAULT ABS parasite.c
...
21: 000000000000b208 8 OBJECT GLOBAL DEFAULT 3 addr
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/syscall.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/syscall.h b/include/syscall.h
index faf79de..966cb75 100644
--- a/include/syscall.h
+++ b/include/syscall.h
@@ -354,7 +354,7 @@ static int sys_socket(int domain, int type, int protocol)
return syscall3(__NR_socket, (long) domain, (long) type, (long) protocol);
}
-struct sockaddr *addr;
+struct sockaddr;
static int sys_bind(int sockfd, const struct sockaddr *addr, int addrlen)
{
return syscall3(__NR_bind, (long)sockfd, (long)addr, (long) addrlen);
More information about the CRIU
mailing list