]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test_ioctls: reduce stack use
authorSage Weil <sage.weil@dreamhost.com>
Sun, 21 Aug 2011 20:52:37 +0000 (13:52 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 21 Aug 2011 20:52:37 +0000 (13:52 -0700)
Coverity cid 51

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/client/test_ioctls.c

index 50709274f8c4c2843484e2a2247a064e5e6cf8db..15320ca71fd91c1c435be42dc341e99f69d137fa 100644 (file)
 
 #include "ioctl.h"
 
+char new_file_name[PATH_MAX];
+
 int main(int argc, char **argv)
 {
        char *fn;
        int fd, err;
        struct ceph_ioctl_layout l;
        struct ceph_ioctl_dataloc dl;
-        char new_file_name[PATH_MAX];
 
        if (argc < 3) {
                printf("usage: test_ioctls <filename> <offset>\n");