X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Frc.c;h=e637fc6ca8f77270fda66abfa9a5a8ff0f1822d9;hp=dbaf9535a954f7d793ff20d59490cefa09f0cfb4;hb=6391d1a7cfa10337a75465c72d49df3c9ebc65ca;hpb=fcd75e021a12fbd93c4d51fbca7844fdb4f7436f diff --git a/fish/rc.c b/fish/rc.c index dbaf953..e637fc6 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -177,14 +177,15 @@ rc_listen (void) char sockpath[128]; pid_t pid; struct sockaddr_un addr; - int sock, s, i; + int sock, s; + size_t i; FILE *fp; XDR xdr, xdr2; guestfish_hello hello; guestfish_call call; guestfish_reply reply; char **argv; - int argc; + size_t argc; memset (&hello, 0, sizeof hello); memset (&call, 0, sizeof call); @@ -307,7 +308,7 @@ rc_listen (void) /* Remote control client. */ int -rc_remote (int pid, const char *cmd, int argc, char *argv[], +rc_remote (int pid, const char *cmd, size_t argc, char *argv[], int exit_on_error) { guestfish_hello hello;