summaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-05-08 12:34:17 +0200
committerMark McLoughlin <markmc@redhat.com>2009-06-09 11:38:49 +0100
commitb1232e415d1e81fc9b2265ec23b4115c1d9a51f5 (patch)
tree018406ee8a9dda90c0c64161b66eb09d13ca606d /sysemu.h
parentfc95fe94f6e14ebfe1bf8fc985ae65c0662a5291 (diff)
downloadqemu-b1232e415d1e81fc9b2265ec23b4115c1d9a51f5.tar.gz
qemu-b1232e415d1e81fc9b2265ec23b4115c1d9a51f5.tar.bz2
qemu-b1232e415d1e81fc9b2265ec23b4115c1d9a51f5.zip
net: Real fix for check_params users
OK, last try: 8e4416af45 broke -net socket, ffad4116b9 tried to fix it but broke error reporting of invalid parameters. So this patch widely reverts ffad4116b9 again and intead fixes those callers of check_params that originally suffered from overwritten buffers by using separate ones. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysemu.h b/sysemu.h
index 658aeec0b0..e5e5ba0603 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -270,7 +270,8 @@ void usb_info(Monitor *mon);
int get_param_value(char *buf, int buf_size,
const char *tag, const char *str);
-int check_params(const char * const *params, const char *str);
+int check_params(char *buf, int buf_size,
+ const char * const *params, const char *str);
void register_devices(void);