Fix 2 compiler warnings.

remotes/origin/master-1.2.x
Victor Julien 14 years ago
parent cfced01641
commit 2c62b50ed5

@ -443,7 +443,6 @@ static void AlertDebugLogDeInitCtx(OutputCtx *output_ctx)
*/ */
OutputCtx *AlertDebugLogInitCtx(ConfNode *conf) OutputCtx *AlertDebugLogInitCtx(ConfNode *conf)
{ {
int ret = 0;
LogFileCtx *file_ctx = NULL; LogFileCtx *file_ctx = NULL;
file_ctx = LogFileNewCtx(); file_ctx = LogFileNewCtx();

@ -39,10 +39,12 @@
static FILE * static FILE *
SCLogOpenUnixSocketFp(const char *path, int sock_type) SCLogOpenUnixSocketFp(const char *path, int sock_type)
{ {
struct sockaddr_un sun = {0}; struct sockaddr_un sun;
int s = -1; int s = -1;
FILE * ret = NULL; FILE * ret = NULL;
memset(&sun, 0x00, sizeof(sun));
s = socket(PF_UNIX, sock_type, 0); s = socket(PF_UNIX, sock_type, 0);
if (s < 0) goto err; if (s < 0) goto err;

Loading…
Cancel
Save