diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-01-09 17:45:20 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-01-09 17:45:20 +0900 |
commit | 613554cc80f481025def331ac5a7ab111510ce0f (patch) | |
tree | ceba634f325b6ed718d4484145739528e0284cc7 | |
parent | 23ba3b90bf0f88a94b623149f6a8cbd55649d28a (diff) | |
download | gnunet-613554cc80f481025def331ac5a7ab111510ce0f.tar.gz gnunet-613554cc80f481025def331ac5a7ab111510ce0f.zip |
REST: Use more recent _POSIX_LOGIN_NAME_MAX for portability. Fixes #7557
-rw-r--r-- | src/rest/gnunet-rest-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index 1ea4471d1..f9a949e61 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c | |||
@@ -132,7 +132,7 @@ static char *basic_auth_secret; | |||
132 | /** | 132 | /** |
133 | * User of the service | 133 | * User of the service |
134 | */ | 134 | */ |
135 | char cuser[LOGIN_NAME_MAX]; | 135 | char cuser[_POSIX_LOGIN_NAME_MAX]; |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * Allowed Origins (CORS) | 138 | * Allowed Origins (CORS) |
@@ -1207,7 +1207,7 @@ run (void *cls, | |||
1207 | GNUNET_SCHEDULER_shutdown (); | 1207 | GNUNET_SCHEDULER_shutdown (); |
1208 | return; | 1208 | return; |
1209 | } | 1209 | } |
1210 | if (0 != getlogin_r (cuser, LOGIN_NAME_MAX)) | 1210 | if (0 != getlogin_r (cuser, _POSIX_LOGIN_NAME_MAX)) |
1211 | { | 1211 | { |
1212 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1212 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1213 | "Unable to get user.\n"); | 1213 | "Unable to get user.\n"); |