Fix warnings

This commit is contained in:
wangbin579 2018-05-16 17:30:56 +08:00
parent 6b21ee9062
commit 2549cc5abd
3 changed files with 2 additions and 3 deletions

View File

@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <sys/stat.h>
#include "cetus-users.h"
#include "cetus-util.h"

View File

@ -106,7 +106,7 @@ read_file_to_buffer(const char *filename, char **buffer)
gboolean
try_get_int_value(const gchar *option_value, gint *return_value)
{
gint ret = sscanf(option_value, "%ld", return_value);
gint ret = sscanf(option_value, "%d", return_value);
if(1 == ret) {
return TRUE;
} else {

View File

@ -324,8 +324,6 @@ network_ssl_write(network_socket *sock, int send_chunks)
send_queue->offset -= s->len;
#if NETWORK_DEBUG_TRACE_IO
g_debug("%s:output for sock:%p", G_STRLOC, sock);
/* to trace the data we sent to the socket, enable this */
g_debug_hexdump(G_STRLOC, S(s));
#endif
if (!sock->do_query_cache) {
g_string_free(s, TRUE);