Make -Wall clean
[nbd.git] / nbd-client.c
index 35f5d8d..0e1da2b 100644 (file)
@@ -49,6 +49,7 @@ int check_conn(char* devname, int do_print) {
        char* p;
        int fd;
        int len;
+
        if(!strncmp(devname, "/dev/", 5)) {
                devname+=5;
        }
@@ -237,6 +238,7 @@ void usage(void) {
 
 void disconnect(char* device) {
        int nbd = open(device, O_RDWR);
+
        if (nbd < 0)
                err("Cannot open NBD: %m\nPlease ensure the 'nbd' module is loaded.");
        printf("Disconnecting: que, ");
@@ -269,7 +271,7 @@ int main(int argc, char *argv[]) {
        int nofork=0;
        u64 size64;
        u32 flags;
-       int i, c;
+       int c;
        int nonspecial=0;
        struct option long_options[] = {
                { "block-size", required_argument, NULL, 'b' },