From: Ben Pfaff Date: Fri, 16 Jan 2009 04:37:32 +0000 (-0800) Subject: t-test: Move 'cmd' variable from file scope into cmd_t_test(). X-Git-Tag: v0.7.3~108 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=15975af5d34fa9266933a3a61020720d1b657050 t-test: Move 'cmd' variable from file scope into cmd_t_test(). This variable was only used inside cmd_t_test() anyhow. --- diff --git a/src/language/stats/t-test.q b/src/language/stats/t-test.q index 52f9838b..c201ba13 100644 --- a/src/language/stats/t-test.q +++ b/src/language/stats/t-test.q @@ -240,8 +240,6 @@ static void calculate (struct cmd_t_test *, static int mode; -static struct cmd_t_test cmd; - static int compare_group_binary (const struct group_statistics *a, const struct group_statistics *b, const struct group_properties *p); @@ -255,6 +253,7 @@ static unsigned hash_group_binary (const struct group_statistics *g, int cmd_t_test (struct lexer *lexer, struct dataset *ds) { + struct cmd_t_test cmd; struct casegrouper *grouper; struct casereader *group; bool ok;