diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-27 14:07:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:07 -0500 |
commit | 38c2164f68514727140270821c569a106b705997 (patch) | |
tree | 5e5bf7247013a29cf611acf2aa31cf08644cf3fb /source4/web_server/esp/esp.h | |
parent | aba7014e41b120e8c4bac5d5dab91655b46a2175 (diff) | |
download | samba-38c2164f68514727140270821c569a106b705997.tar.gz samba-38c2164f68514727140270821c569a106b705997.tar.bz2 samba-38c2164f68514727140270821c569a106b705997.zip |
r7023: reduced the number of warnings in building ejs and esp
(This used to be commit ef998f9f8fb9759e5a4572acb3f9038efc019e5e)
Diffstat (limited to 'source4/web_server/esp/esp.h')
-rw-r--r-- | source4/web_server/esp/esp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/web_server/esp/esp.h b/source4/web_server/esp/esp.h index a6cac1e852..ff4210befa 100644 --- a/source4/web_server/esp/esp.h +++ b/source4/web_server/esp/esp.h @@ -81,7 +81,7 @@ typedef void* EspHandle; /* Opaque Web server handle type */ typedef struct EspRequest { MprStr docPath; /* Physical path for ESP page */ EjsId eid; /* EJS instance handle */ - struct Esp *esp; /* Pointer to ESP control block */ + const struct Esp *esp; /* Pointer to ESP control block */ EspHandle requestHandle; /* Per request web server handle */ MprStr uri; /* Request URI */ MprVar *variables; /* Pointer to variables */ @@ -148,7 +148,7 @@ typedef int (*EspStringCFunction)(EspRequest *ep, int argc, /* * APIs for those hosting the ESP module */ -extern int espOpen(Esp *control); +extern int espOpen(const Esp *control); extern void espClose(void); extern EspRequest *espCreateRequest(EspHandle webServerRequestHandle, char *uri, MprVar *envObj); @@ -175,7 +175,7 @@ extern void *espGetThisPtr(EspRequest *ep); /* * Utility routines to use in C methods */ -extern void espError(EspRequest *ep, const char *fmt, ...); +extern void espError(EspRequest *ep, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3); extern int espEvalFile(EspRequest *ep, char *path, MprVar *result, char **emsg); extern int espEvalScript(EspRequest *ep, char *script, MprVar *result, @@ -191,7 +191,7 @@ extern void espSetHeader(EspRequest *ep, char *header, extern void espSetReturnString(EspRequest *ep, const char *str); extern int espWrite(EspRequest *ep, char *buf, int size); extern int espWriteString(EspRequest *ep, char *buf); -extern int espWriteFmt(EspRequest *ep, char *fmt, ...); +extern int espWriteFmt(EspRequest *ep, char *fmt, ...) PRINTF_ATTRIBUTE(2,3); /* * ESP array[] variable access (set will update/create) |