diff options
author | jobol <jose.bollo@iot.bzh> | 2017-11-09 11:24:03 +0100 |
---|---|---|
committer | jobol <jose.bollo@iot.bzh> | 2017-11-09 11:24:03 +0100 |
commit | 5f52a397574ecc6f3af9a5a7f81c0963b978b228 (patch) | |
tree | 4f9d80e7cb831c97e260369f7c37320b5961f271 /agl-identity-service/src | |
parent | c2fa1fba3c986d64d992e4df5a620b865cd19923 (diff) |
Make it compiling
Signed-off-by: jobol <jose.bollo@iot.bzh>
Diffstat (limited to 'agl-identity-service/src')
-rw-r--r-- | agl-identity-service/src/agl-forgerock.c | 13 | ||||
-rw-r--r-- | agl-identity-service/src/agl-identity-binding.c | 3 |
2 files changed, 2 insertions, 14 deletions
diff --git a/agl-identity-service/src/agl-forgerock.c b/agl-identity-service/src/agl-forgerock.c index 13308ea..9306c7a 100644 --- a/agl-identity-service/src/agl-forgerock.c +++ b/agl-identity-service/src/agl-forgerock.c @@ -16,17 +16,8 @@ */ #define _GNU_SOURCE -/* -#include <errno.h> -#include <stdint.h> -#include <unistd.h> -#include <stdlib.h> -#include <string.h> -#include <fcntl.h> -#include <sys/types.h> -#include <sys/stat.h> -*/ #include <stdio.h> +#include <string.h> #include <json-c/json.h> @@ -161,7 +152,7 @@ void agl_forgerock_download_request(const char *vin, const char *kind, const cha int rc; char *url; - rc = asprintf(&result, "%s?vin=%s&kind=%s&keytoken=%s", endpoint, vin, kind, key); + rc = asprintf(&url, "%s?vin=%s&kind=%s&keytoken=%s", endpoint, vin, kind, key); if (rc >= 0) aia_get(url, expiration_delay, oidc_name, oidc_name, downloaded, url); else diff --git a/agl-identity-service/src/agl-identity-binding.c b/agl-identity-service/src/agl-identity-binding.c index 06e513c..97e1e37 100644 --- a/agl-identity-service/src/agl-identity-binding.c +++ b/agl-identity-service/src/agl-identity-binding.c @@ -16,10 +16,7 @@ */ #define _GNU_SOURCE -#include <errno.h> -#include <stdint.h> #include <unistd.h> -#include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/types.h> |