Fixed all of the compiler warnings for the client components.
This commit is contained in:
		| @@ -353,14 +353,14 @@ GetTickCount(void) | ||||
|       long  ticksPerSecond; | ||||
|  | ||||
|       ticksPerSecond = sysconf(_SC_CLK_TCK); | ||||
|       DbgTrace(3, "-GetTickCount- TicksPerSec = %0X\n", ticksPerSecond); | ||||
|       DbgTrace(3, "-GetTickCount- TicksPerSec = %0lX\n", ticksPerSecond); | ||||
|       g_milliSecondsPerTicks = 1000 / ticksPerSecond; | ||||
|    } | ||||
|  | ||||
|    // Determine the tickCount as milliseconds | ||||
|    tickCount = g_milliSecondsPerTicks * times(&tm); | ||||
|  | ||||
|    DbgTrace(2, "-GetTickCount- End, retValue = %0X\n", tickCount); | ||||
|    DbgTrace(2, "-GetTickCount- End, retValue = %0lX\n", tickCount); | ||||
|  | ||||
|    return tickCount; | ||||
| } | ||||
| @@ -410,8 +410,6 @@ CreateUserMutex( | ||||
|       DbgTrace(0, "-CreateUserMutex- sprintf failed, error = %d\n", errno); | ||||
|    } | ||||
|  | ||||
| exit: | ||||
|  | ||||
|    DbgTrace(1, "-CreateUserMutex- End, retStatus\n", retStatus); | ||||
|  | ||||
|    return retStatus; | ||||
| @@ -545,10 +543,10 @@ OpenLibrary( | ||||
|    libHandle = dlopen(pFileName, RTLD_LAZY); | ||||
|    if (libHandle == NULL) | ||||
|    { | ||||
|       DbgTrace(0, "-OpenLibrary- Not able to load library, error = %d\n", dlerror()); | ||||
|       DbgTrace(0, "-OpenLibrary- Not able to load library, error = %s\n", dlerror()); | ||||
|    } | ||||
|  | ||||
|    DbgTrace(1, "-OpenLibrary- End, handle = %08X\n", libHandle); | ||||
|    DbgTrace(1, "-OpenLibrary- End, handle = %0lX\n", (long) libHandle); | ||||
|  | ||||
|    return libHandle; | ||||
| } | ||||
| @@ -602,10 +600,10 @@ GetFunctionPtr( | ||||
|    pFuncPtr = dlsym(libHandle, pFunctionName); | ||||
|    if (pFuncPtr == NULL) | ||||
|    { | ||||
|       DbgTrace(0, "-GetFunctionPtr- Not able to obtain func ptr, error = %d\n", dlerror()); | ||||
|       DbgTrace(0, "-GetFunctionPtr- Not able to obtain func ptr, error = %s\n", dlerror()); | ||||
|    } | ||||
|  | ||||
|    DbgTrace(1, "-GetFunctionPtr- End, pFuncPtr = %08X\n", pFuncPtr); | ||||
|    DbgTrace(1, "-GetFunctionPtr- End, pFuncPtr = %0lX\n", (long) pFuncPtr); | ||||
|  | ||||
|    return pFuncPtr; | ||||
| } | ||||
| @@ -793,7 +791,7 @@ NormalizeHostName( | ||||
|    // Release our synchronization mutex | ||||
|    pthread_mutex_unlock(&g_hNormalizedHostNameCacheMutex); | ||||
|  | ||||
|    DbgTrace(1, "-NormalizeHostName- End, pNormalizedName = %08X\n", pNormalizedName); | ||||
|    DbgTrace(1, "-NormalizeHostName- End, pNormalizedName = %0lX\n", (long) pNormalizedName); | ||||
|  | ||||
|    return pNormalizedName; | ||||
| } | ||||
|   | ||||
| @@ -113,8 +113,8 @@ CurlWriteCallback( | ||||
| //++======================================================================= | ||||
| RpcSession* | ||||
| OpenRpcSession( | ||||
|    IN    char *pHostName, | ||||
|    IN    uint16_t hostPort) | ||||
|    IN    const char *pHostName, | ||||
|    IN    const uint16_t hostPort) | ||||
| // | ||||
| //  Arguments:  | ||||
| // | ||||
| @@ -127,7 +127,7 @@ OpenRpcSession( | ||||
| // L2 | ||||
| //=======================================================================-- | ||||
| { | ||||
|    RpcSession  *pSession; | ||||
|    RpcSession  *pSession = NULL; | ||||
|    char        *pPartialHttpUrl = NULL; | ||||
|    char        *pPartialHttpsUrl = NULL; | ||||
|    int         hostNameLen = strlen(pHostName); | ||||
| @@ -244,7 +244,7 @@ OpenRpcSession( | ||||
|    if (pPartialHttpsUrl) | ||||
|       free(pPartialHttpsUrl); | ||||
|  | ||||
|    DbgTrace(2, "-OpenRpcSession- End, pSession = %08X\n", pSession); | ||||
|    DbgTrace(2, "-OpenRpcSession- End, pSession = %0lX\n", (long) pSession); | ||||
|  | ||||
|    return pSession; | ||||
| } | ||||
| @@ -374,7 +374,7 @@ InternalRpc( | ||||
|                      } | ||||
|                      else | ||||
|                      { | ||||
|                         DbgTrace(0, "-InternalRpc- HTTP request did not complete successfully, status = %d\n", httpCompStatus); | ||||
|                         DbgTrace(0, "-InternalRpc- HTTP request did not complete successfully, status = %ld\n", httpCompStatus); | ||||
|                         retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR, | ||||
|                                                     CASA_FACILITY_AUTHTOKEN, | ||||
|                                                     CASA_STATUS_UNSUCCESSFUL); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user