X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Flog.c;h=c3eac189cbf7f8dd8ffe0721c44d9ab218804437;hb=HEAD;hp=49a444c93fe871c81d9b25c2ae8a062607f7a677;hpb=d3372da97568d5e1f35fa19787c8ec8af93a0435;p=doldaconnect.git diff --git a/daemon/log.c b/daemon/log.c index 49a444c..c3eac18 100644 --- a/daemon/log.c +++ b/daemon/log.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,12 +16,12 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include #include #include #include -#include #ifdef HAVE_CONFIG_H #include @@ -56,7 +56,7 @@ void flog(int priority, char *format, ...) writev(2, iov, 2); } if(logtosyslog) - syslog(priority, "%s", b); + syslog(syslogfac | priority, "%s", b); free(b); }