]> git.proxmox.com Git - qemu.git/commitdiff
Remove unused argument for nbd_client()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 31 Aug 2010 07:30:33 +0000 (09:30 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Sep 2010 09:45:50 +0000 (09:45 +0000)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
nbd.c
nbd.h
qemu-nbd.c

diff --git a/nbd.c b/nbd.c
index a9f295f2bbbc20e58802b1ed0d76420490537114..70499985720bfc4543235d63fc93b14df0819641 100644 (file)
--- a/nbd.c
+++ b/nbd.c
@@ -393,7 +393,7 @@ int nbd_disconnect(int fd)
        return 0;
 }
 
-int nbd_client(int fd, int csock)
+int nbd_client(int fd)
 {
        int ret;
        int serrno;
@@ -427,7 +427,7 @@ int nbd_disconnect(int fd)
     return -1;
 }
 
-int nbd_client(int fd, int csock)
+int nbd_client(int fd)
 {
     errno = ENOTSUP;
     return -1;
diff --git a/nbd.h b/nbd.h
index 5a1fbdf5128bfefe7755c78ad4f178035a46ec6b..f103c3c05096bb54fa8c3c0b0ce2593f966ab4dd 100644 (file)
--- a/nbd.h
+++ b/nbd.h
@@ -55,7 +55,7 @@ int nbd_send_request(int csock, struct nbd_request *request);
 int nbd_receive_reply(int csock, struct nbd_reply *reply);
 int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t dev_offset,
              off_t *offset, bool readonly, uint8_t *data, int data_size);
-int nbd_client(int fd, int csock);
+int nbd_client(int fd);
 int nbd_disconnect(int fd);
 
 #endif
index 4e607cfb61b0d23c996bd0b77d53a55f5395dec9..9cc8f472e6f1e8fcab7532b45e0dba406e0bea4d 100644 (file)
@@ -417,7 +417,7 @@ int main(int argc, char **argv)
 
             show_parts(device);
 
-            nbd_client(fd, sock);
+            nbd_client(fd);
             close(fd);
  out:
             kill(pid, SIGTERM);