]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote: Cleanup improper VIR_ERR_NO_SUPPORT use
authorOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 08:26:26 +0000 (16:26 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 08:26:26 +0000 (16:26 +0800)
src/remote/remote_driver.c

index e5bfa4b1ab5096e361f7f8d67701f23a20c1de35..28f333b9569b61eefbdff3b478376a61641e1c90 100644 (file)
@@ -2928,7 +2928,7 @@ static int remoteDomainEventRegister(virConnectPtr conn,
     remoteDriverLock(priv);
 
     if (priv->domainEventState->timer < 0) {
-         remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
+         remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no event support"));
          goto done;
     }
 
@@ -3277,7 +3277,7 @@ remoteSecretGetValue (virSecretPtr secret, size_t *value_size,
 
     /* internalFlags intentionally do not go over the wire */
     if (internalFlags) {
-        remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no internalFlags support"));
+        remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no internalFlags support"));
         goto done;
     }
 
@@ -3541,7 +3541,7 @@ static int remoteDomainEventRegisterAny(virConnectPtr conn,
     remoteDriverLock(priv);
 
     if (priv->domainEventState->timer < 0) {
-         remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
+         remoteError(VIR_ERR_OPERATION_INVALID, "%s", _("no event support"));
          goto done;
     }