This fixes following unused-parameter warning:

psplash.c: In function 'parse_command':
psplash.c:105:49: warning: unused parameter 'length'
[-Wunused-parameter]

Signed-off-by: Richard Leitner <richard.leit...@skidata.com>
---
 psplash.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/psplash.c b/psplash.c
index 65cf514..c72d120 100644
--- a/psplash.c
+++ b/psplash.c
@@ -102,7 +102,7 @@ psplash_draw_progress (PSplashFB *fb, int value)
 }
 
 static int 
-parse_command (PSplashFB *fb, char *string, int length) 
+parse_command (PSplashFB *fb, char *string)
 {
   char *command;
 
@@ -175,14 +175,14 @@ psplash_main (PSplashFB *fb, int pipe_fd, int timeout)
       
       if (command[length-1] == '\0') 
        {
-         if (parse_command(fb, command, strlen(command))) 
+         if (parse_command(fb, command))
            return;
          length = 0;
        } 
       else if (command[length-1] == '\n') 
        {
          command[length-1] = '\0';
-         if (parse_command(fb, command, strlen(command))) 
+         if (parse_command(fb, command))
            return;
          length = 0;
        } 
-- 
2.1.4

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to