Skip to content

Commit 8c9663b

Browse files
apps/examples/userfs/userfs_main.c: Fix warning (#41)
Fixes warning: CC: userfs_main.c userfs_main.c:182:3: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ufstest_truncate, ^ userfs_main.c:182:3: note: (near initialization for ‘g_ufstest_ops.truncate’) Co-authored-by: Gregory Nutt <[email protected]>
1 parent 7a8790f commit 8c9663b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/userfs/userfs_main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static int ufstest_dup(FAR void *volinfo, FAR void *oldinfo,
115115
static int ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
116116
FAR struct stat *buf);
117117
static int ufstest_truncate(FAR void *volinfo, FAR void *openinfo,
118-
off_t *length);
118+
off_t length);
119119
static int ufstest_opendir(FAR void *volinfo, FAR const char *relpath,
120120
FAR void **dir);
121121
static int ufstest_closedir(FAR void *volinfo, FAR void *dir);
@@ -420,7 +420,7 @@ static int ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
420420
}
421421

422422
static int ufstest_truncate(FAR void *volinfo, FAR void *openinfo,
423-
off_t *length)
423+
off_t length)
424424
{
425425
return -ENOSYS;
426426
}

0 commit comments

Comments
 (0)