mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-29 23:58:02 -05:00
* src/virsh.c: applied patch from Jim Meyering to add printf-style
function checking in virsh.c and fix one warning raised Daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 19 15:19:06 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/virsh.c: applied patch from Jim Meyering to add printf-style
|
||||||
|
function checking in virsh.c and fix one warning raised
|
||||||
|
|
||||||
Mon Mar 19 15:15:51 CET 2007 Daniel Veillard <veillard@redhat.com>
|
Mon Mar 19 15:15:51 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* qemud/protocol.h src/internal.h: applied patch from Jim Meyering
|
* qemud/protocol.h src/internal.h: applied patch from Jim Meyering
|
||||||
|
|||||||
+4
-4
@@ -179,8 +179,8 @@ typedef struct __vshControl {
|
|||||||
|
|
||||||
static vshCmdDef commands[];
|
static vshCmdDef commands[];
|
||||||
|
|
||||||
static void vshError(vshControl * ctl, int doexit, const char *format,
|
static void vshError(vshControl * ctl, int doexit, const char *format, ...)
|
||||||
...);
|
ATTRIBUTE_FORMAT(printf, 3, 4);
|
||||||
static int vshInit(vshControl * ctl);
|
static int vshInit(vshControl * ctl);
|
||||||
static int vshDeinit(vshControl * ctl);
|
static int vshDeinit(vshControl * ctl);
|
||||||
static void vshUsage(vshControl * ctl, const char *cmdname);
|
static void vshUsage(vshControl * ctl, const char *cmdname);
|
||||||
@@ -3158,8 +3158,8 @@ _vshStrdup(vshControl * ctl, const char *s, const char *filename, int line)
|
|||||||
|
|
||||||
if ((x = strdup(s)))
|
if ((x = strdup(s)))
|
||||||
return x;
|
return x;
|
||||||
vshError(ctl, TRUE, _("%s: %d: failed to allocate %d bytes"),
|
vshError(ctl, TRUE, _("%s: %d: failed to allocate %lu bytes"),
|
||||||
filename, line, strlen(s));
|
filename, line, (unsigned long)strlen(s));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user