• Andrew Vagin's avatar
    test/rpc: include unistd.h · 94928cf8
    Andrew Vagin authored
    gcc -c test.c -I ./
    test.c: In function ‘recv_resp’:
    test.c:18:8: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
      len = read(socket_fd, buf, MAX_MSG_SIZE);
            ^
    test.c: In function ‘send_req’:
    test.c:45:6: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
      if (write(socket_fd, buf, len)  == -1) {
          ^
    test.c: In function ‘main’:
    test.c:165:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
      close(fd);
    
    Reported-by: Mr Jenkins
    Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    94928cf8
Name
Last commit
Last update
..
.gitignore Loading commit data...
Makefile Loading commit data...
errno.py Loading commit data...
loop.sh Loading commit data...
ps_test.py Loading commit data...
restore-loop.py Loading commit data...
rpc.proto Loading commit data...
run.sh Loading commit data...
test.c Loading commit data...
test.py Loading commit data...