diff options
Diffstat (limited to 'src/rccexternal.c')
-rw-r--r-- | src/rccexternal.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/rccexternal.c b/src/rccexternal.c index 58b8a23..1ea5ce6 100644 --- a/src/rccexternal.c +++ b/src/rccexternal.c @@ -1,3 +1,22 @@ +/* + LibRCC - module comunicating with rcc-external helper application + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -211,7 +230,7 @@ again: } } - if (rccExternalWrite(sock, &module, 1, 0)) { + if (rccExternalWrite(sock, (char*)&module, 1, 0)) { close(sock); return -1; } |