git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: Print uptime.
[libguestfs.git]
/
daemon
/
guestfsd.c
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
61a6236
..
db0bff9
100644
(file)
--- a/
daemon/guestfsd.c
+++ b/
daemon/guestfsd.c
@@
-226,7
+226,7
@@
main (int argc, char *argv[])
/* Connect to vmchannel. */
int sock = -1;
/* Connect to vmchannel. */
int sock = -1;
- if (
strncmp (vmchannel, "tcp:", 4) == 0
) {
+ if (
STREQLEN (vmchannel, "tcp:", 4)
) {
/* Resolve the hostname. */
struct addrinfo *res, *rr;
struct addrinfo hints;
/* Resolve the hostname. */
struct addrinfo *res, *rr;
struct addrinfo hints;
@@
-831,7
+831,7
@@
split_lines (char *str)
int size = 0, alloc = 0;
char *p, *pend;
int size = 0, alloc = 0;
char *p, *pend;
- if (
strcmp (str, "") == 0
)
+ if (
STREQ (str, "")
)
goto empty_list;
p = str;
goto empty_list;
p = str;