You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/01/30 17:58:13 UTC

[incubator-nuttx-apps] branch master updated: apps/examples/userfs/userfs_main.c: Fix warning (#41)

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c9663b  apps/examples/userfs/userfs_main.c:  Fix warning (#41)
8c9663b is described below

commit 8c9663b6c121a66189850662d7ce7e51649e078e
Author: patacongo <sp...@yahoo.com>
AuthorDate: Thu Jan 30 11:58:03 2020 -0600

    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 <gn...@nuttx.org>
---
 examples/userfs/userfs_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/userfs/userfs_main.c b/examples/userfs/userfs_main.c
index f5dffb1..157765a 100644
--- a/examples/userfs/userfs_main.c
+++ b/examples/userfs/userfs_main.c
@@ -115,7 +115,7 @@ static int     ufstest_dup(FAR void *volinfo, FAR void *oldinfo,
 static int     ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
                  FAR struct stat *buf);
 static int     ufstest_truncate(FAR void *volinfo, FAR void *openinfo,
-                 off_t *length);
+                 off_t length);
 static int     ufstest_opendir(FAR void *volinfo, FAR const char *relpath,
                  FAR void **dir);
 static int     ufstest_closedir(FAR void *volinfo, FAR void *dir);
@@ -420,7 +420,7 @@ static int ufstest_fstat(FAR void *volinfo, FAR void *openinfo,
 }
 
 static int ufstest_truncate(FAR void *volinfo, FAR void *openinfo,
-                            off_t *length)
+                            off_t length)
 {
   return -ENOSYS;
 }