diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-08-25 06:45:41 +0200 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-08-25 06:45:41 +0200 |
commit | a3bae55d41f5159df3a0125f02a8fa322e81bbe3 (patch) | |
tree | 06163f5e15a4902428ece78fb278e3f5429f697b /src/libpiano/request.c | |
parent | 34b6068d229efcb934fa40b5f4d47a46cedae552 (diff) | |
download | pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.tar.gz pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.tar.bz2 pianobar-windows-a3bae55d41f5159df3a0125f02a8fa322e81bbe3.zip |
libpiano: Abstract out blowfish cipher to PianoCipher_t so different implementations than gcrypt can be used.
Diffstat (limited to 'src/libpiano/request.c')
-rw-r--r-- | src/libpiano/request.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libpiano/request.c b/src/libpiano/request.c index 02b4b43..a97abb5 100644 --- a/src/libpiano/request.c +++ b/src/libpiano/request.c @@ -24,7 +24,7 @@ THE SOFTWARE. #include "../config.h" #include <curl/curl.h> -#include <json.h> +#include <json/json.h> #include <assert.h> #include <stdio.h> #include <string.h> @@ -94,7 +94,7 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, json_object_object_add (j, "partnerAuthToken", json_object_new_string (ph->partner.authToken)); json_object_object_add (j, "syncTime", - json_object_new_int (timestamp)); + json_object_new_int64 (timestamp)); CURL * const curl = curl_easy_init (); urlencAuthToken = curl_easy_escape (curl, @@ -487,7 +487,7 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, json_object_object_add (j, "userAuthToken", json_object_new_string (ph->user.authToken)); json_object_object_add (j, "syncTime", - json_object_new_int (timestamp)); + json_object_new_int64 (timestamp)); } /* json to string */ |