cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-qemu-option-check_params-is-now-unused-drop-it.patch

218e99
From 1d20e66fdee76ee9a7cab19de50a138588f0c8c8 Mon Sep 17 00:00:00 2001
218e99
Message-Id: <1d20e66fdee76ee9a7cab19de50a138588f0c8c8.1383564115.git.minovotn@redhat.com>
218e99
In-Reply-To: <5575e0aec51f40ebec46e98ec085cda053283aba.1383564115.git.minovotn@redhat.com>
218e99
References: <5575e0aec51f40ebec46e98ec085cda053283aba.1383564115.git.minovotn@redhat.com>
218e99
From: Markus Armbruster <armbru@redhat.com>
218e99
Date: Fri, 27 Sep 2013 13:31:12 +0200
218e99
Subject: [PATCH 02/14] qemu-option: check_params() is now unused, drop it
218e99
218e99
RH-Author: Markus Armbruster <armbru@redhat.com>
218e99
Message-id: <1380288680-26645-3-git-send-email-armbru@redhat.com>
218e99
Patchwork-id: 54559
218e99
O-Subject: [PATCH 7.0 qemu-kvm 02/10] qemu-option: check_params() is now unused, drop it
218e99
Bugzilla: 997817
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
218e99
218e99
From: Markus Armbruster <armbru@redhat.com>
218e99
218e99
Signed-off-by: Markus Armbruster <armbru@redhat.com>
218e99
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
218e99
Message-id: 1371208516-7857-3-git-send-email-armbru@redhat.com
218e99
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
218e99
(cherry picked from commit a86b35f992f107323e432c0a96107e11e1b699ad)
218e99
---
218e99
 include/qemu/option.h |  2 --
218e99
 util/qemu-option.c    | 30 ------------------------------
218e99
 2 files changed, 32 deletions(-)
218e99
218e99
Signed-off-by: Michal Novotny <minovotn@redhat.com>
218e99
---
218e99
 include/qemu/option.h |  2 --
218e99
 util/qemu-option.c    | 30 ------------------------------
218e99
 2 files changed, 32 deletions(-)
218e99
218e99
diff --git a/include/qemu/option.h b/include/qemu/option.h
218e99
index 9db74fb..13f5e72 100644
218e99
--- a/include/qemu/option.h
218e99
+++ b/include/qemu/option.h
218e99
@@ -55,8 +55,6 @@ int get_next_param_value(char *buf, int buf_size,
218e99
                          const char *tag, const char **pstr);
218e99
 int get_param_value(char *buf, int buf_size,
218e99
                     const char *tag, const char *str);
218e99
-int check_params(char *buf, int buf_size,
218e99
-                 const char * const *params, const char *str);
218e99
 
218e99
 
218e99
 /*
218e99
diff --git a/util/qemu-option.c b/util/qemu-option.c
218e99
index 37e7640..5d686c8 100644
218e99
--- a/util/qemu-option.c
218e99
+++ b/util/qemu-option.c
218e99
@@ -123,36 +123,6 @@ int get_param_value(char *buf, int buf_size,
218e99
     return get_next_param_value(buf, buf_size, tag, &str);
218e99
 }
218e99
 
218e99
-int check_params(char *buf, int buf_size,
218e99
-                 const char * const *params, const char *str)
218e99
-{
218e99
-    const char *p;
218e99
-    int i;
218e99
-
218e99
-    p = str;
218e99
-    while (*p != '\0') {
218e99
-        p = get_opt_name(buf, buf_size, p, '=');
218e99
-        if (*p != '=') {
218e99
-            return -1;
218e99
-        }
218e99
-        p++;
218e99
-        for (i = 0; params[i] != NULL; i++) {
218e99
-            if (!strcmp(params[i], buf)) {
218e99
-                break;
218e99
-            }
218e99
-        }
218e99
-        if (params[i] == NULL) {
218e99
-            return -1;
218e99
-        }
218e99
-        p = get_opt_value(NULL, 0, p);
218e99
-        if (*p != ',') {
218e99
-            break;
218e99
-        }
218e99
-        p++;
218e99
-    }
218e99
-    return 0;
218e99
-}
218e99
-
218e99
 /*
218e99
  * Searches an option list for an option with the given name
218e99
  */
218e99
-- 
218e99
1.7.11.7
218e99