virerror: mark VIR_ERR_AGENT_UNSYNCED as DEPRECATED

Since commit 5e5019bf, we've no longer use
VIR_ERR_AGENT_UNSYNCED anymore.
Mark it as DEPRECATED.

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Chen Hanxiao 2017-12-07 09:59:14 +08:00 committed by Michal Privoznik
parent 2d07f1f0eb
commit c416a20db1
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ typedef enum {
VIR_ERR_NO_SERVER = 95, /* Server was not found */
VIR_ERR_NO_CLIENT = 96, /* Client was not found */
VIR_ERR_AGENT_UNSYNCED = 97, /* guest agent replies with wrong id
to guest-sync command */
to guest-sync command (DEPRECATED)*/
VIR_ERR_LIBSSH = 98, /* error in libssh transport driver */
} virErrorNumber;

View File

@ -1441,7 +1441,7 @@ virErrorMsg(virErrorNumber error, const char *info)
else
errmsg = _("Client not found: %s");
break;
case VIR_ERR_AGENT_UNSYNCED:
case VIR_ERR_AGENT_UNSYNCED: /* DEPRECATED */
if (info == NULL)
errmsg = _("guest agent replied with wrong id to guest-sync command");
else