projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanups, spelling fixes, allow symbol names for signals (-k option),
[tinc]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index
af8029d
..
9b30a8a
100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol.c,v 1.28.4.12
2 2002/02/10 21:5
7:54 guus Exp $
+ $Id: protocol.c,v 1.28.4.12
3 2002/02/27 22:3
7:54 guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-67,17
+67,17
@@
cp
va_start(args, format);
len = vsnprintf(buffer, MAXBUFSIZE, format, args);
va_start(args, format);
len = vsnprintf(buffer, MAXBUFSIZE, format, args);
- request = va_arg(args, int);
va_end(args);
if(len < 0 || len > MAXBUFSIZE-1)
{
va_end(args);
if(len < 0 || len > MAXBUFSIZE-1)
{
- syslog(LOG_ERR, _("Output buffer overflow while sending
%s
to %s (%s)"), request_name[request], c->name, c->hostname);
+ syslog(LOG_ERR, _("Output buffer overflow while sending
request
to %s (%s)"), request_name[request], c->name, c->hostname);
return -1;
}
if(debug_lvl >= DEBUG_PROTOCOL)
{
return -1;
}
if(debug_lvl >= DEBUG_PROTOCOL)
{
+ sscanf(buffer, "%d", &request);
if(debug_lvl >= DEBUG_META)
syslog(LOG_DEBUG, _("Sending %s to %s (%s): %s"), request_name[request], c->name, c->hostname, buffer);
else
if(debug_lvl >= DEBUG_META)
syslog(LOG_DEBUG, _("Sending %s to %s (%s): %s"), request_name[request], c->name, c->hostname, buffer);
else