aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstat
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-12-23 09:38:07 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-12-23 09:38:07 +0000
commitc9deb7c4a3d3907179915cfa813cc8799e11668e (patch)
treee3278ace5a15209faa24041c31fa89221eb00fa1 /tools/xenstat
parenta20cd2c5ceb2978b660199c8d58d130bc048a267 (diff)
downloadxen-c9deb7c4a3d3907179915cfa813cc8799e11668e.tar.gz
xen-c9deb7c4a3d3907179915cfa813cc8799e11668e.tar.bz2
xen-c9deb7c4a3d3907179915cfa813cc8799e11668e.zip
More 'const' cleanups (and fixes, for Solaris).
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstat')
-rw-r--r--tools/xenstat/xentop/xentop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c
index f88fd26742..a2ea23a735 100644
--- a/tools/xenstat/xentop/xentop.c
+++ b/tools/xenstat/xentop/xentop.c
@@ -269,7 +269,7 @@ static void print(const char *fmt, ...)
if (!batch) {
if((current_row() < lines()-1)) {
va_start(args, fmt);
- vwprintw(stdscr, (const char *)fmt, args);
+ vwprintw(stdscr, fmt, args);
va_end(args);
}
} else {
@@ -283,7 +283,7 @@ static void print(const char *fmt, ...)
static void attr_addstr(int attr, const char *str)
{
attron(attr);
- addstr((const char *)str);
+ addstr(str);
attroff(attr);
}