aboutsummaryrefslogtreecommitdiff
path: root/src/rest/gnunet-rest-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest/gnunet-rest-server.c')
-rw-r--r--src/rest/gnunet-rest-server.c4
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 */
135char cuser[LOGIN_NAME_MAX]; 135char 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");