diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-20 09:09:12 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-20 09:09:12 +0000 |
commit | d0545de79cf952827607888ffe77604faffcfec9 (patch) | |
tree | f2d51861d1cb8d8c5ee88b8a3820c4168420c770 | |
parent | 0fc22a50f6e4549ea9cbe94dec727c55aa7a64ad (diff) |
Protected #include of unistd.h.
Sending a local variable for type into GetParameterValue/.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@55 1faa4e14-9dd3-4be0-9f0e-ffe519881164
-rw-r--r-- | src/Content.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Content.c b/src/Content.c index b708d16..0a92ee6 100644 --- a/src/Content.c +++ b/src/Content.c @@ -14,7 +14,10 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include "cctk.h" @@ -826,7 +829,7 @@ static int ThornParameterPage(cGH *cctkGH, httpRequest *request, void *data) if (pData->type == PARAMETER_BOOLEAN) { - param_bool = *((CCTK_INT *)CCTK_ParameterGet(pData->name,thorn,&pData->type)); + param_bool = *((CCTK_INT *)CCTK_ParameterGet(pData->name,thorn,¶m_type)); sprintf(message, "%s<TR><TD align=left valign=center>%s</TD>" "<TD align=left valign=center>" |