summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.i>2013-03-14 16:47:10 (GMT)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-03-15 01:20:01 (GMT)
commit0b890f927fa2e377be72384d94f42d607b896c4a (patch)
tree5eff1e88443c01bcc9321dfec45936b7eec1e10e
parentd4a9dd82ead3233049784a31dc4798e9dbd9c6ff (diff)
Fix printf format for priority
* netfs.c (netfs_append_args): Use %d as printf format for ULFS->PRIORITY.
-rw-r--r--netfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs.c b/netfs.c
index d93f896..74fe8aa 100644
--- a/netfs.c
+++ b/netfs.c
@@ -60,7 +60,7 @@ netfs_append_args (char **argz, size_t *argz_len)
if (ulfs->priority)
{
char *buf = NULL;
- if ((err = asprintf (&buf, "%s=%s", OPT_LONG (OPT_LONG_PRIORITY),
+ if ((err = asprintf (&buf, "%s=%d", OPT_LONG (OPT_LONG_PRIORITY),
ulfs->priority)) != -1)
{
err = argz_add (argz, argz_len, buf);