aboutsummaryrefslogtreecommitdiff
path: root/restapi
diff options
context:
space:
mode:
authorJulien Dessaux2019-09-12 18:01:48 +0200
committerJulien Dessaux2019-09-12 18:01:48 +0200
commitda1b1e5a43925ec650da169812e17db9fbb22430 (patch)
tree05f32d35930cc8ef60b5f0f7e82ef873f42b8f92 /restapi
parentAdded function to count subscriptions (diff)
downloadrocket-cli-client-da1b1e5a43925ec650da169812e17db9fbb22430.tar.gz
rocket-cli-client-da1b1e5a43925ec650da169812e17db9fbb22430.tar.bz2
rocket-cli-client-da1b1e5a43925ec650da169812e17db9fbb22430.zip
Reduced the scope of a useless global variable to static
Diffstat (limited to 'restapi')
-rw-r--r--restapi/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/restapi/auth.c b/restapi/auth.c
index eda92a9..e32a194 100644
--- a/restapi/auth.c
+++ b/restapi/auth.c
@@ -10,7 +10,7 @@
#define USER_STR "user="
#define PASS_STR "&password="
-char * authToken = NULL;
+static char * authToken = NULL;
const char * // returns authToken if ok, NULL otherwise
restapi_login(const char* username, const char* password)