bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix the ``--priority'' option handling in netfs_append_args.


From: Sergiu Ivanov
Subject: [PATCH] Fix the ``--priority'' option handling in netfs_append_args.
Date: Thu, 10 Dec 2009 23:42:49 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

* netfs.c (netfs_append_args) <priority>: Change the format
specification to ``%d''.
---

Hello,

This is a small patch fixing a typo in netfs_append_args.

Regards,
Sergiu

---
 netfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/netfs.c b/netfs.c
index b3174fb..bb89c95 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);
-- 
1.6.5.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]