projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Windows uses backslashes...
[tinc]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index
c2d9289
..
0d58d6a
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.14
4 2003/07/29 10:50:15
guus Exp $
+ $Id: protocol.c,v 1.28.4.14
6 2003/08/03 12:38:43
guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-209,13
+209,12
@@
void exit_requests(void)
bool seen_request(char *request)
{
bool seen_request(char *request)
{
- past_request_t p = {
- .request = request,
- };
- past_request_t *new;
+ past_request_t *new, p = {0};
cp();
cp();
+ p.request = request;
+
if(avl_search(past_request_tree, &p)) {
ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
return true;
if(avl_search(past_request_tree, &p)) {
ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
return true;
@@
-247,6
+246,6
@@
void age_past_requests(void)
}
if(left || deleted)
}
if(left || deleted)
- ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Aging past requests: deleted %d, left %d
\n
"),
+ ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Aging past requests: deleted %d, left %d"),
deleted, left);
}
deleted, left);
}