Update of /cvsroot/syncml-ctoolkit/toolkit/src/xpt/bindings/wsp/all
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17505/src/xpt/bindings/wsp/all
Modified Files:
settings.c transact.c wsphttp.c
Log Message:
Added -Wall to CFLAGS, Removed unused variables and functions
Index: settings.c
===================================================================
RCS file: /cvsroot/syncml-ctoolkit/toolkit/src/xpt/bindings/wsp/all/settings.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** settings.c 2 May 2003 22:05:10 -0000 1.2
--- settings.c 7 Apr 2004 06:51:09 -0000 1.3
***************
*** 454,457 ****
--- 454,459 ----
retValue = "SDS";
break;
+ default:
+ break;
} /* End bearer switch */
***************
*** 497,500 ****
--- 499,504 ----
retValue = "TETRA SDS MSISDN";
break;
+ default:
+ break;
} /* End address switch */
Index: transact.c
===================================================================
RCS file: /cvsroot/syncml-ctoolkit/toolkit/src/xpt/bindings/wsp/all/transact.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** transact.c 6 Aug 2002 21:03:21 -0000 1.1
--- transact.c 7 Apr 2004 06:51:09 -0000 1.2
***************
*** 63,69 ****
#endif
- #ifdef WIN32
#include <stdio.h> /* for sprintf */
- #endif
--- 63,67 ----
***************
*** 741,747 ****
{
unsigned int rc = SML_ERR_OK;
- const char *contentType = NULL;
const char *docName = NULL;
- size_t valueSize = 0;
char *tmp = NULL;
--- 739,743 ----
Index: wsphttp.c
===================================================================
RCS file: /cvsroot/syncml-ctoolkit/toolkit/src/xpt/bindings/wsp/all/wsphttp.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** wsphttp.c 6 Aug 2002 21:03:21 -0000 1.1
--- wsphttp.c 7 Apr 2004 06:51:09 -0000 1.2
***************
*** 181,185 ****
const char *httpGetStaticRequestHdrs(WspHttpParms_t *parmPtr)
{
- unsigned int addLen = 0;
unsigned int hdrSize = 0;
XPTDEBUG((" httpGetStaticRequestHdrs(%lx)\n", (unsigned long) parmPtr));
--- 181,184 ----
***************
*** 222,226 ****
const char *contentLength)
{
- unsigned int addLen = 0;
int headerSize = 0;
char *date = getRFC822Date();
--- 221,224 ----
***************
*** 599,604 ****
unsigned int parseAuthVerification(WspAuthentication_t *auth, const char *source)
{
- char *data = NULL;
-
XPTDEBUG((" parseAuthVerification(%lx, %s)\n", (unsigned long) auth, source));
--- 597,600 ----
***************
*** 903,921 ****
void auth(WspHttpParms_t *parmPtr)
{
- char *basic = "Authorization: Basic \"base64(\"userid:password\")\""NL;
-
- char *digest = "Authorization: Digest " \
- "username=\"settings->userName\" " \
- "realm=\"realm\" " \
- "nonce = \"serverNonceValue\" " \
- "uri=\"transaction->uri\" " \
- "response=\"request-digest\" " \
- "algorithm = \"<MD5|MD5-sess|token>\" " \
- "cnonce=\"clientNonceValue\" " \
- "opaque = \"opaqueValue\" " \
- "qop=\"<auth|auth-int|token>\" " \
- "nc=<nonceCountValue> " \
- "<authParmToken>=<authParmValue>"NL;
-
if (parmPtr->request->authorization != NULL) {
/* Binding MUST support, Specified by client, or not included */
--- 899,902 ----
|