fs: replace NIPQUAD()
[linux-2.6-block.git] / fs / nfsd / nfsctl.c
index e3f9783fdcf7eba3872331b0c48f5aee7207fd62..77d7b8c531a6b14f351b280f84d98f0bf9e66401 100644 (file)
@@ -330,7 +330,7 @@ static ssize_t failover_unlock_ip(struct file *file, char *buf, size_t size)
                return -EINVAL;
 
        /* get ipv4 address */
-       if (sscanf(fo_path, NIPQUAD_FMT "%c", &b1, &b2, &b3, &b4, &c) != 4)
+       if (sscanf(fo_path, "%u.%u.%u.%u%c", &b1, &b2, &b3, &b4, &c) != 4)
                return -EINVAL;
        if (b1 > 255 || b2 > 255 || b3 > 255 || b4 > 255)
                return -EINVAL;