aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 9c33feb35..0edaf1047 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -244,8 +244,10 @@ static void make_device(char *path, int delete)
244} 244}
245 245
246/* File callback for /sys/ traversal */ 246/* File callback for /sys/ traversal */
247static int fileAction(const char *fileName, struct stat *statbuf, 247static int fileAction(const char *fileName,
248 void *userData, int depth) 248 struct stat *statbuf ATTRIBUTE_UNUSED,
249 void *userData,
250 int depth ATTRIBUTE_UNUSED)
249{ 251{
250 size_t len = strlen(fileName) - 4; 252 size_t len = strlen(fileName) - 4;
251 char *scratch = userData; 253 char *scratch = userData;
@@ -261,8 +263,10 @@ static int fileAction(const char *fileName, struct stat *statbuf,
261} 263}
262 264
263/* Directory callback for /sys/ traversal */ 265/* Directory callback for /sys/ traversal */
264static int dirAction(const char *fileName, struct stat *statbuf, 266static int dirAction(const char *fileName ATTRIBUTE_UNUSED,
265 void *userData, int depth) 267 struct stat *statbuf ATTRIBUTE_UNUSED,
268 void *userData ATTRIBUTE_UNUSED,
269 int depth)
266{ 270{
267 return (depth >= MAX_SYSFS_DEPTH ? SKIP : TRUE); 271 return (depth >= MAX_SYSFS_DEPTH ? SKIP : TRUE);
268} 272}