瀏覽代碼

Unify type of in for loops

Aaron Marcher 7 年之前
父節點
當前提交
7ab183c97f
共有 1 個文件被更改,包括 2 次插入1 次删除
  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;