projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xenserver: Synchronize interface-reconfigure from Citrix.
[openvswitch]
/
lib
/
unixctl.c
diff --git
a/lib/unixctl.c
b/lib/unixctl.c
index 526c3fe356cec18076b461378735bb0c5950e808..7d6fdd67bb5afdcf83f708720a1a0b4010349fb2 100644
(file)
--- a/
lib/unixctl.c
+++ b/
lib/unixctl.c
@@
-82,7
+82,7
@@
unixctl_help(struct unixctl_conn *conn, const char *args UNUSED)
struct shash_node *node;
ds_put_cstr(&ds, "The available commands are:\n");
struct shash_node *node;
ds_put_cstr(&ds, "The available commands are:\n");
-
HMAP_FOR_EACH (node, struct shash_node, node, &commands.map
) {
+
SHASH_FOR_EACH (node, &commands
) {
ds_put_format(&ds, "\t%s\n", node->name);
}
unixctl_command_reply(conn, 214, ds_cstr(&ds));
ds_put_format(&ds, "\t%s\n", node->name);
}
unixctl_command_reply(conn, 214, ds_cstr(&ds));
@@
-553,7
+553,9
@@
unixctl_client_transact(struct unixctl_client *client,
s = ds_cstr(&line);
if (*reply_code == -1) {
s = ds_cstr(&line);
if (*reply_code == -1) {
- if (!isdigit(s[0]) || !isdigit(s[1]) || !isdigit(s[2])) {
+ if (!isdigit((unsigned char)s[0])
+ || !isdigit((unsigned char)s[1])
+ || !isdigit((unsigned char)s[2])) {
VLOG_WARN("reply from %s does not start with 3-digit code",
client->connect_path);
error = EPROTO;
VLOG_WARN("reply from %s does not start with 3-digit code",
client->connect_path);
error = EPROTO;