/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
char *
vlog_set_levels_from_string(const char *s_)
{
- char *save_ptr;
+ char *save_ptr = NULL;
char *s = xstrdup(s_);
char *module, *facility;
}
static void
-vlog_unixctl_list(struct unixctl_conn *conn, const char *args UNUSED)
+vlog_unixctl_list(struct unixctl_conn *conn, const char *args OVS_UNUSED)
{
char *msg = vlog_get_levels();
unixctl_command_reply(conn, 200, msg);
}
static void
-vlog_unixctl_reopen(struct unixctl_conn *conn, const char *args UNUSED)
+vlog_unixctl_reopen(struct unixctl_conn *conn, const char *args OVS_UNUSED)
{
if (log_file_name) {
int error = vlog_reopen_log_file();
p++;
}
field = 0;
- while (isdigit(*p)) {
+ while (isdigit((unsigned char)*p)) {
field = (field * 10) + (*p - '0');
p++;
}