aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--agl-identity-service/src/agl-forgerock.c13
-rw-r--r--agl-identity-service/src/agl-identity-binding.c3
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>