aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-09-17 17:10:25 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 11:40:36 +0200
commitd6b783a8ec505c8e158bd0304c5e195cff5bb8c3 (patch)
tree17fc5fbe4c16328e7dd1ece2c95fc46be6a051fa /options.c
parentMore t_client.sh updates - exit with SKIP when we want to skip (diff)
downloadopenvpn-d6b783a8ec505c8e158bd0304c5e195cff5bb8c3.tar.xz
Fixed compiler warnings reported on Ubuntu 10.04
The warnings reported where: -------------------------------------------------------- misc.c:158: warning: ignoring return value of ‘nice’, declared with attribute warn_unused_result options.c:4033: warning: format not a string literal and no format arguments options.c:4043: warning: format not a string literal and no format arguments options.c:4053: warning: format not a string literal and no format arguments push.c:182: warning: format not a string literal and no format arguments push.c:199: warning: format not a string literal and no format arguments push.c:235: warning: format not a string literal and no format arguments status.c:171: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result -------------------------------------------------------- Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: Gert Doering <gert@greenie.muc.de> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to '')
-rw-r--r--options.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/options.c b/options.c
index 3c20f5b..a717e1e 100644
--- a/options.c
+++ b/options.c
@@ -4014,7 +4014,7 @@ add_option (struct options *options,
{
if (options->inetd != -1)
{
- msg (msglevel, opterr);
+ msg (msglevel, "%s", opterr);
goto err;
}
else
@@ -4024,7 +4024,7 @@ add_option (struct options *options,
{
if (options->inetd != -1)
{
- msg (msglevel, opterr);
+ msg (msglevel, "%s", opterr);
goto err;
}
else
@@ -4034,7 +4034,7 @@ add_option (struct options *options,
{
if (name != NULL)
{
- msg (msglevel, opterr);
+ msg (msglevel, "%s", opterr);
goto err;
}
name = p[z];