mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 03:47:41 +08:00
Fix warnings
This commit is contained in:
parent
6b21ee9062
commit
2549cc5abd
@ -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"
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user