mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qemu-socket: Eliminate silly QERR_ macros
The QERR_ macros are leftovers from the days of "rich" error objects. They're used with error_set() and qerror_report(), and expand into the first *two* arguments. This trickiness has become pointless. Clean up. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
dbe2a7a62a
commit
235256a2bd
2 changed files with 13 additions and 25 deletions
|
@ -154,16 +154,4 @@ void qerror_report_err(Error *err);
|
|||
#define QERR_UNSUPPORTED \
|
||||
ERROR_CLASS_GENERIC_ERROR, "this feature or command is not currently supported"
|
||||
|
||||
#define QERR_SOCKET_CONNECT_FAILED \
|
||||
ERROR_CLASS_GENERIC_ERROR, "Failed to connect socket"
|
||||
|
||||
#define QERR_SOCKET_LISTEN_FAILED \
|
||||
ERROR_CLASS_GENERIC_ERROR, "Failed to listen on socket"
|
||||
|
||||
#define QERR_SOCKET_BIND_FAILED \
|
||||
ERROR_CLASS_GENERIC_ERROR, "Failed to bind socket"
|
||||
|
||||
#define QERR_SOCKET_CREATE_FAILED \
|
||||
ERROR_CLASS_GENERIC_ERROR, "Failed to create socket"
|
||||
|
||||
#endif /* QERROR_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue