From 40fcd2e10e46b72cd467a7f7c321e8c5f0611289 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 21 Aug 2011 13:52:37 -0700 Subject: [PATCH] test_ioctls: reduce stack use Coverity cid 51 Signed-off-by: Sage Weil --- src/client/test_ioctls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/test_ioctls.c b/src/client/test_ioctls.c index 50709274f8c4c..15320ca71fd91 100644 --- a/src/client/test_ioctls.c +++ b/src/client/test_ioctls.c @@ -14,13 +14,14 @@ #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 \n"); -- 2.39.5