Displaying 4 results from an estimated 4 matches for "append_strs_and_free".
2011 Nov 21
1
[PATCH] Add MD devices to guestfish device autocompletion
---
fish/destpaths.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-MD-devices-to-guestfish-device-autocompletion.patch
Type: text/x-patch
Size: 400 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20111121/b667596b/attachment.bin>
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...ate)
} while (0)
/* Is it a device? */
- if (len < 5 || strncmp (text, "/dev/", 5) == 0) {
+ if (len < 5 || STREQLEN (text, "/dev/", 5)) {
/* Get a list of everything that can possibly begin with /dev/ */
strs = guestfs_list_devices (g);
APPEND_STRS_AND_FREE;
diff --git a/fish/edit.c b/fish/edit.c
index d30b3ca..3fc41fb 100644
--- a/fish/edit.c
+++ b/fish/edit.c
@@ -149,7 +149,7 @@ do_edit (const char *cmd, int argc, char *argv[])
unlink (filename);
/* Changed? */
- if (strlen (content) == size && strncmp (content, content_new, size) ==...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...pletion for paths on the guest filesystem, also for
@@ -103,33 +103,33 @@ complete_dest_paths_generator (const char *text, int state)
guestfs_push_error_handler (g, NULL, NULL);
-/* Silently do nothing if an allocation fails */
+ /* Silently do nothing if an allocation fails */
#define APPEND_STRS_AND_FREE \
- do { \
- if (strs) { \
- size_t i; \
- size_t n = guestfs_int_count_strings (strs); \
+ do { \
+ if (strs) { \
+ size_t i; \
+ size_t n = guestfs_int_count_strings (strs); \...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste.
---
align/scan.c | 35 ++++++++++---------
cat/cat.c | 39 +++++++++++----------
cat/filesystems.c | 69 +++++++++++++++++++-------------------
cat/log.c | 35 ++++++++++---------
cat/ls.c | 61 +++++++++++++++++----------------
df/main.c | 43 ++++++++++++------------
diff/diff.c | 67