aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Startup.c b/src/Startup.c
index d87805e..f29037a 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -252,7 +252,7 @@ int HTTP_Shutdown(void)
#ifdef CCTK_PTHREADS
static void * HTTP_Thread(void *cctkGH)
{
- CCTK_INT *terminate;
+ CCTK_INT terminate;
int type;
do
@@ -260,9 +260,9 @@ static void * HTTP_Thread(void *cctkGH)
/* Only poll for a few seconds in case we are terminated */
HTTP_Poll((cGH *)cctkGH, 10, 0);
- terminate = (CCTK_INT *)CCTK_ParameterGet("terminate",CCTK_THORNSTRING, &type);
+ terminate = *(const CCTK_INT *)CCTK_ParameterGet("terminate",CCTK_THORNSTRING, &type);
- } while(! *terminate);
+ } while(! terminate);
return NULL;
}