浏览代码

fix some warnings

Mike Frysinger 18 年之前
父节点
当前提交
5a0c58adc7
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      libc/pwd_grp/lckpwdf.c
  2. 2 2
      libc/pwd_grp/pwd_grp.c

+ 1 - 1
libc/pwd_grp/lckpwdf.c

@@ -176,7 +176,7 @@ int ulckpwdf (void)
 }
 
 
-static void noop_handler (int sig)
+static void noop_handler (attribute_unused int sig)
 {
 	/* We simply return which makes the `fcntl' call return with an error.  */
 }

+ 2 - 2
libc/pwd_grp/pwd_grp.c

@@ -844,7 +844,7 @@ int putspent(const struct spwd *p, FILE *stream)
 	static const char ld_format[] = "%ld:";
 	const char *f;
 	long int x;
-	int i;
+	size_t i;
 	int rv = -1;
 	__STDIO_AUTO_THREADLOCK_VAR;
 
@@ -1126,7 +1126,7 @@ int attribute_hidden __parsespent(void *data, char * line)
 int attribute_hidden __pgsreader(int (*__parserfunc)(void *d, char *line), void *data,
 				char *__restrict line_buff, size_t buflen, FILE *f)
 {
-	int line_len;
+	size_t line_len;
 	int skip;
 	int rv = ERANGE;
 	__STDIO_AUTO_THREADLOCK_VAR;