Просмотр исходного кода

_actually_ fix the c89 problem

Sebastian Wolf 2 лет назад
Родитель
Сommit
ee69a7d8ae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/check_snmp.c

+ 1 - 1
plugins/check_snmp.c

@@ -493,7 +493,7 @@ main (int argc, char **argv)
 			/* This branch is expected to be error-handling only */
 			show = response;
 			show_length = strlen(show);
-			for (int j = 0; j < show_length; j++){
+			for (j = 0; j < show_length; j++){
 				if (isspace(show[j])){
 					die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show);
 				}