Displaying 2 results from an estimated 2 matches for "40e702e".
Did you mean:
40e400e
2009 Aug 03
0
[PATCH] guestfs: fix typo in my recent change
...:09 +0200
Subject: [PATCH] guestfs: fix typo in my recent change
* src/guestfs.c (guestfs_perrorf): Rename former err to errnum,
to avoid compilation error.
---
src/guestfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 802c1d2..40e702e 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -440,7 +440,7 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...)
{
va_list args;
char *msg;
- int err = errno;
+ int errnum = errno;
va_start (args, fs);
int err = vasprintf (&msg, fs, args);
@@ -450,11 +450,11 @@ guestfs_per...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...txt_id != buf)
- free (msg_ctxt_id);
+ free (msg_ctxt_id);
#endif
if (!(translation == msg_ctxt_id || translation == msgid_plural))
- return translation;
+ return translation;
}
return (n == 1 ? msgid : msgid_plural);
}
diff --git a/src/guestfs.c b/src/guestfs.c
index 40e702e..64c327b 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -562,7 +562,7 @@ xread (int fd, void *buf, size_t len)
r = read (fd, buf, len);
if (r == -1) {
if (errno == EINTR || errno == EAGAIN)
- continue;
+ continue;
return -1;
}
@@ -743,7 +743,7 @@ add_cmdline...