diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-09-19 16:27:04 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-09-19 16:27:07 +0300 |
commit | 85c5f176c6a8c3a1ea097f4c4f8a454507691395 (patch) | |
tree | 330f05709176a919fea7319aa4f37bbb8d0582e7 /modules/pkgs/monitoringPlugins/test-str-format.patch | |
parent | 383daadf796ff2124c794f0b29926a32272d9e62 (diff) | |
download | nixsap-85c5f176c6a8c3a1ea097f4c4f8a454507691395.tar.gz |
monitoring-plugins: 2.1.2 -> 2.2
Some more features enabled.
Diffstat (limited to 'modules/pkgs/monitoringPlugins/test-str-format.patch')
-rw-r--r-- | modules/pkgs/monitoringPlugins/test-str-format.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/pkgs/monitoringPlugins/test-str-format.patch b/modules/pkgs/monitoringPlugins/test-str-format.patch new file mode 100644 index 0000000..3311db7 --- /dev/null +++ b/modules/pkgs/monitoringPlugins/test-str-format.patch @@ -0,0 +1,26 @@ +Description; fix warning/error + error: format not a string literal and no format arguments + [-Werror=format-security] +--- monitoring-plugins-2.2.orig/lib/tests/test_utils.c ++++ monitoring-plugins-2.2/lib/tests/test_utils.c +@@ -489,16 +489,16 @@ main (int argc, char **argv) + int tlen = strlen(testname); + + strcpy(testname+tlen, states[i]); +- ok(i==mp_translate_state(states[i]), testname); ++ ok(i==mp_translate_state(states[i]), "%s", testname); + + strcpy(testname+tlen, statelower); +- ok(i==mp_translate_state(statelower), testname); ++ ok(i==mp_translate_state(statelower), "%s", testname); + + strcpy(testname+tlen, stateupper); +- ok(i==mp_translate_state(stateupper), testname); ++ ok(i==mp_translate_state(stateupper), "%s", testname); + + strcpy(testname+tlen, statenum); +- ok(i==mp_translate_state(statenum), testname); ++ ok(i==mp_translate_state(statenum), "%s", testname); + } + ok(ERROR==mp_translate_state("warningfewgw"), "Translate state string with garbage"); + ok(ERROR==mp_translate_state("00"), "Translate state string: bad numeric string 1"); |