summaryrefslogtreecommitdiffstats
path: root/src/klammail/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/klammail/client.c')
-rwxr-xr-xsrc/klammail/client.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/klammail/client.c b/src/klammail/client.c
index 6382785..88ec4fb 100755
--- a/src/klammail/client.c
+++ b/src/klammail/client.c
@@ -22,8 +22,6 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/wait.h>
-#include <errno.h>
-
#include <stdio.h>
#include <unistd.h>
@@ -37,13 +35,16 @@
//#include "others.h"
#include "cfgparser.h"
+#include "defaults.h"
#include "memory.h"
#include "options.h"
-#include "defaults.h"
+#include "output.h"
//#include "shared.h"
#include <clamav.h>
-int client(const char *dirname, struct optstruct *opt, char **virname)
+int passfile(const char *file, int sockd, const char **virname);
+
+int client(const char *dirname, struct optstruct *opt, const char **virname)
{
char buff[4096], cwd[200], *file, *scancmd;
struct sockaddr_un server;
@@ -125,7 +126,7 @@ int client(const char *dirname, struct optstruct *opt, char **virname)
return scanret;
}
-int passfile(const char *file, int sockd, char **virname)
+int passfile(const char *file, int sockd, const char **virname)
{
char buff[4096];