Skip to content

Commit 3b7fcea

Browse files
kzall0cyoe
authored andcommitted
nbd: fix build failure after openunix/opennet refactor
Commit 17043b0 ("Refactor the negotiate() and connected functions") removed all parameters from openunix() and opennet(), but main() still called them with host/port arguments. This causes build errors: nbd-client.c:1224:32: error: too many arguments to function ‘openunix’; expected 0, have 1 nbd-client.c:1226:32: error: too many arguments to function ‘opennet’; expected 0, have 2 Update the calls in main() to match the new prototypes. Fixes: 17043b0 ("Refactor the negotiate() and connected functions") Signed-off-by: Yunseong Kim <ysk@kzalloc.com> Signed-off-by: Wouter Verhelst <w@uter.be>
1 parent 39dc924 commit 3b7fcea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbd-client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,9 +1221,9 @@ int main(int argc, char *argv[]) {
12211221

12221222
for (i = 0; i < cur_client->nconn; i++) {
12231223
if (cur_client->b_unix)
1224-
sock = openunix(cur_client->hostn);
1224+
sock = openunix();
12251225
else
1226-
sock = opennet(cur_client->hostn, cur_client->port);
1226+
sock = opennet();
12271227
if (sock < 0)
12281228
exit(EXIT_FAILURE);
12291229

0 commit comments

Comments
 (0)