diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-20 00:56:37 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-09-20 00:56:37 +0300 |
commit | 64993d198836c3d98643670b4b056701224c854e (patch) | |
tree | 434611801414aa7b6f96e381fa229be7fa362c0a | |
parent | df0d5f4df874bd47e5e47d08c67fea7ac17eec1e (diff) | |
download | eclat-64993d198836c3d98643670b4b056701224c854e.tar.gz eclat-64993d198836c3d98643670b4b056701224c854e.tar.bz2 |
Minor fix.
* lib/libeclat.h (EC2_API_VERSION): New define.
* lib/qcreat.c: Add "Version: parameter here.
* src/startinst.c: Update.
-rw-r--r-- | lib/libeclat.h | 2 | ||||
-rw-r--r-- | lib/qcreat.c | 1 | ||||
-rw-r--r-- | src/startinst.c | 3 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libeclat.h b/lib/libeclat.h index e2dfc44..59ff0f6 100644 --- a/lib/libeclat.h +++ b/lib/libeclat.h @@ -33,6 +33,8 @@ struct ec2_param { char *value; }; +#define EC2_API_VERSION "2012-08-15" + #define EC2_QF_HTTPS 0x01 #define EC2_QF_POST 0x02 diff --git a/lib/qcreat.c b/lib/qcreat.c index a25f528..8a0eecf 100644 --- a/lib/qcreat.c +++ b/lib/qcreat.c @@ -38,6 +38,7 @@ eclat_query_create(int flags, const char *endpoint, const char *uri) NULL, NULL, ec2_param_free); + eclat_query_add_param(q, "Version", EC2_API_VERSION); q->endpoint = grecs_strdup(endpoint); q->uri = grecs_strdup(uri); q->ttl = 5; diff --git a/src/startinst.c b/src/startinst.c index 87887e9..f2d3ea8 100644 --- a/src/startinst.c +++ b/src/startinst.c @@ -16,8 +16,6 @@ #include "eclat.h" -#define EC2_API_VERSION "2012-08-15" - int eclat_start_instance(CURL *curl, int argc, char **argv) { @@ -43,7 +41,6 @@ eclat_start_instance(CURL *curl, int argc, char **argv) } eclat_query_add_param(q, "AWSAccessKeyId", access_key); - eclat_query_add_param(q, "Version", EC2_API_VERSION); eclat_query_signature(q, secret_key); url = eclat_query_to_url(q, NULL); |