Browse Source

Unify type of in for loops

Aaron Marcher 7 năm trước cách đây
mục cha
commit
7ab183c97f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      components/battery.c

+ 2 - 1
components/battery.c

@@ -77,7 +77,8 @@
 	const char *
 	battery_state(const char *bat)
 	{
-		int fd, i;
+		int fd;
+		size_t i;
 		struct apm_power_info apm_info;
 		struct {
 			unsigned int state;