diff options
author | Richard Jones <rjones@redhat.com> | 2010-02-15 15:55:38 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-02-15 15:55:38 +0000 |
commit | 1f0f0df9b19520979857ab42b192ba46e0bc36dd (patch) | |
tree | 72bceb0f4283e91ec820d14bfe2bb60dbb64be3e | |
parent | 30a0b5cf1606c54cc527d758949422396763cbd3 (diff) | |
download | libguestfs-1f0f0df9b19520979857ab42b192ba46e0bc36dd.tar.gz libguestfs-1f0f0df9b19520979857ab42b192ba46e0bc36dd.tar.xz libguestfs-1f0f0df9b19520979857ab42b192ba46e0bc36dd.zip |
Remove some unused variables.
Since we have to compile with -Wno-unused-variables, we don't
spot unused variables in code. I found these by compiling the
code in Ubuntu.
-rw-r--r-- | fuse/guestmount.c | 2 | ||||
-rw-r--r-- | hivex/hivexsh.c | 1 | ||||
-rw-r--r-- | src/guestfs.c | 3 |
3 files changed, 2 insertions, 4 deletions
diff --git a/fuse/guestmount.c b/fuse/guestmount.c index df116196..b4a917fc 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -927,7 +927,7 @@ main (int argc, char *argv[]) struct mp *mps = NULL; struct mp *mp; char *p; - int c, i, r; + int c, r; int option_index; struct sigaction sa; diff --git a/hivex/hivexsh.c b/hivex/hivexsh.c index 51d8cfb1..a8ac0e1d 100644 --- a/hivex/hivexsh.c +++ b/hivex/hivexsh.c @@ -184,7 +184,6 @@ main (int argc, char *argv[]) char *cmd = buf; char *args; - size_t i = 0; if (buf[len] == '\0') { /* This is mostly safe. Although the cmd_* functions do sometimes diff --git a/src/guestfs.c b/src/guestfs.c index 3c00114f..0e91b96b 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1578,7 +1578,7 @@ print_timestamped_message (guestfs_h *g, const char *fs, ...) va_list args; char *msg; int err; - struct timeval tv, diff; + struct timeval tv; va_start (args, fs); err = vasprintf (&msg, fs, args); @@ -2633,7 +2633,6 @@ guestfs___recv_file (guestfs_h *g, const char *filename) { void *buf; int fd, r; - size_t len; fd = open (filename, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY, 0666); if (fd == -1) { |