aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2016-04-14 12:59:28 +0200
committerRoss Burton <ross.burton@intel.com>2016-04-14 12:31:30 +0100
commite3e0ab48f83609e1dcc43ae9cde28006321704c4 (patch)
treeddb54381a56e82d17a4a08f674fdbec27cf53637
parent121720e4bb1333b792704a8945c3fc2ad7732600 (diff)
downloadpsplash-e3e0ab48f83609e1dcc43ae9cde28006321704c4.tar.gz
psplash-e3e0ab48f83609e1dcc43ae9cde28006321704c4.tar.bz2
psplash-e3e0ab48f83609e1dcc43ae9cde28006321704c4.zip
psplash: remove unused parameter length from parse_command
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.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--psplash.c6
1 files 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;
}