projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220ebc2
)
Remove dead assignment
author
Wouter Verhelst
<w@uter.be>
Sun, 12 Jun 2011 10:54:19 +0000
(12:54 +0200)
committer
Wouter Verhelst
<w@uter.be>
Sun, 12 Jun 2011 10:54:19 +0000
(12:54 +0200)
This used to be part of option handling, but is dead and useless since
we switched option handling to getopt() calls.
nbd-client.c
patch
|
blob
|
history
diff --git
a/nbd-client.c
b/nbd-client.c
index 2456c59cb299e1c3a945c424c4904dc32031627e..a88fa2a2d7e052eafc0bd3323e5a975bc2e95e2e 100644
(file)
--- a/
nbd-client.c
+++ b/
nbd-client.c
@@
-435,7
+435,6
@@
int main(int argc, char *argv[]) {
nbd = open(nbddev, O_RDWR);
if (nbd < 0)
err("Cannot open NBD: %m\nPlease ensure the 'nbd' module is loaded.");
- ++argv; --argc; /* skip device */
sock = opennet(hostname, port, sdp);