#include <xentoollog.h>
struct cmd_spec {
- char *cmd_name;
+ const char *cmd_name;
int (*cmd_impl)(int argc, char **argv);
int can_dryrun;
int modifies;
- char *cmd_desc;
- char *cmd_usage;
- char *cmd_option;
+ const char *cmd_desc;
+ const char *cmd_usage;
+ const char *cmd_option;
};
struct domain_create {
uint32_t domid;
int opt = 0, num = 0;
libxl_console_type type = 0;
- char *console_names = "pv, serial, vuart";
+ const char *console_names = "pv, serial, vuart";
SWITCH_FOREACH_OPT(opt, "n:t:", NULL, "console", 1) {
case 't':
#include "xl.h"
#include "xl_utils.h"
-void dolog(const char *file, int line, const char *func, char *fmt, ...)
+void dolog(const char *file, int line, const char *func, const char *fmt, ...)
{
va_list ap;
char *s = NULL;
}
}
-int do_daemonize(char *name, const char *pidfile)
+int do_daemonize(const char *name, const char *pidfile)
{
char *fullname;
pid_t child1;
const struct option *longopts,
const char* helpstr, int reqargs);
-void dolog(const char *file, int line, const char *func, char *fmt, ...)
+void dolog(const char *file, int line, const char *func, const char *fmt, ...)
__attribute__((format(printf,4,5)));
void xvasprintf(char **strp, const char *fmt, va_list ap)
void print_bitmap(uint8_t *map, int maplen, FILE *stream);
-int do_daemonize(char *name, const char *pidfile);
+int do_daemonize(const char *name, const char *pidfile);
#endif /* XL_UTILS_H */
/*