diff options
author | Julien Dessaux | 2019-09-12 18:01:48 +0200 |
---|---|---|
committer | Julien Dessaux | 2019-09-12 18:01:48 +0200 |
commit | da1b1e5a43925ec650da169812e17db9fbb22430 (patch) | |
tree | 05f32d35930cc8ef60b5f0f7e82ef873f42b8f92 | |
parent | Added function to count subscriptions (diff) | |
download | rocket-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
-rw-r--r-- | restapi/auth.c | 2 |
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) |