chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a788046
)
Add a new buffer.
author
mdw
<mdw>
Fri, 16 Feb 2001 21:41:31 +0000
(21:41 +0000)
committer
mdw
<mdw>
Fri, 16 Feb 2001 21:41:31 +0000
(21:41 +0000)
tripe.c
patch
|
blob
|
blame
|
history
diff --git
a/tripe.c
b/tripe.c
index db5a701320ee03a51e877ed657ec30c0fc65800f..2f423f84323468cfa9997fd649218269f081363b 100644
(file)
--- a/
tripe.c
+++ b/
tripe.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: tripe.c,v 1.
3 2001/02/04 17:10:40
mdw Exp $
+ * $Id: tripe.c,v 1.
4 2001/02/16 21:41:31
mdw Exp $
*
* Main program
*
*
* Main program
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: tripe.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: tripe.c,v $
+ * Revision 1.4 2001/02/16 21:41:31 mdw
+ * Add a new buffer.
+ *
* Revision 1.3 2001/02/04 17:10:40 mdw
* Remove a debugging @abort@ call.
*
* Revision 1.3 2001/02/04 17:10:40 mdw
* Remove a debugging @abort@ call.
*
@@
-47,7
+50,7
@@
/*----- Global variables --------------------------------------------------*/
sel_state sel;
/*----- Global variables --------------------------------------------------*/
sel_state sel;
-octet buf_i[PKBUFSZ], buf_o[PKBUFSZ];
+octet buf_i[PKBUFSZ], buf_o[PKBUFSZ]
, buf_t[PKBUFSZ]
;
/*----- Static variables --------------------------------------------------*/
/*----- Static variables --------------------------------------------------*/
@@
-70,7
+73,7
@@
void interval(struct timeval *tv, void *v)
{
struct timeval tvv;
T( trace(T_PEER, "peer: interval timer"); )
{
struct timeval tvv;
T( trace(T_PEER, "peer: interval timer"); )
- rand_seed(RAND_GLOBAL,
RMD160_
HASHSZ);
+ rand_seed(RAND_GLOBAL, HASHSZ);
p_interval();
tvv = *tv;
tvv.tv_sec += T_INTERVAL;
p_interval();
tvv = *tv;
tvv.tv_sec += T_INTERVAL;
@@
-282,7
+285,7
@@
int main(int argc, char *argv[])
km_init(kr_priv, kr_pub, tag_priv);
a_init(csock);
if (f & f_daemon) {
km_init(kr_priv, kr_pub, tag_priv);
a_init(csock);
if (f & f_daemon) {
- if (u_daemon)
+ if (u_daemon
()
)
die(EXIT_FAILURE, "couldn't become a daemon: %s", strerror(errno));
a_daemon();
}
die(EXIT_FAILURE, "couldn't become a daemon: %s", strerror(errno));
a_daemon();
}