fixed warnings in webadmin.cpp
This commit is contained in:
parent
25d42c44d5
commit
9ebc623a0a
@ -305,6 +305,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
|
|||||||
|
|
||||||
void cWebAdmin::HandleRootRequest(cHTTPConnection & a_Connection, cHTTPRequest & a_Request)
|
void cWebAdmin::HandleRootRequest(cHTTPConnection & a_Connection, cHTTPRequest & a_Request)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Request);
|
||||||
static const char LoginForm[] = \
|
static const char LoginForm[] = \
|
||||||
"<h1>MCServer WebAdmin</h1>" \
|
"<h1>MCServer WebAdmin</h1>" \
|
||||||
"<center>" \
|
"<center>" \
|
||||||
@ -450,6 +451,7 @@ AString cWebAdmin::GetBaseURL(const AStringVector & a_URLSplit)
|
|||||||
|
|
||||||
void cWebAdmin::OnRequestBegun(cHTTPConnection & a_Connection, cHTTPRequest & a_Request)
|
void cWebAdmin::OnRequestBegun(cHTTPConnection & a_Connection, cHTTPRequest & a_Request)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Connection);
|
||||||
const AString & URL = a_Request.GetURL();
|
const AString & URL = a_Request.GetURL();
|
||||||
if (
|
if (
|
||||||
(strncmp(URL.c_str(), "/webadmin", 9) == 0) ||
|
(strncmp(URL.c_str(), "/webadmin", 9) == 0) ||
|
||||||
@ -473,6 +475,7 @@ void cWebAdmin::OnRequestBegun(cHTTPConnection & a_Connection, cHTTPRequest & a_
|
|||||||
|
|
||||||
void cWebAdmin::OnRequestBody(cHTTPConnection & a_Connection, cHTTPRequest & a_Request, const char * a_Data, int a_Size)
|
void cWebAdmin::OnRequestBody(cHTTPConnection & a_Connection, cHTTPRequest & a_Request, const char * a_Data, int a_Size)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Connection);
|
||||||
cRequestData * Data = (cRequestData *)(a_Request.GetUserData());
|
cRequestData * Data = (cRequestData *)(a_Request.GetUserData());
|
||||||
if (Data == NULL)
|
if (Data == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user