Commit 4749ef26 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 54091c9b
...@@ -354,7 +354,7 @@ static int sys_socket(int domain, int type, int protocol) ...@@ -354,7 +354,7 @@ static int sys_socket(int domain, int type, int protocol)
return syscall3(__NR_socket, (long) domain, (long) type, (long) 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) static int sys_bind(int sockfd, const struct sockaddr *addr, int addrlen)
{ {
return syscall3(__NR_bind, (long)sockfd, (long)addr, (long) addrlen); return syscall3(__NR_bind, (long)sockfd, (long)addr, (long) addrlen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment