- avoid use of non-const fmt string
- avoid duplicate def of sbuf_len
typedef enum SocketState SocketState;
typedef struct PktHdr PktHdr;
+extern int cf_sbuf_len;
+
#include "aatree.h"
#include "hash.h"
#include "util.h"
extern int cf_reboot;
extern int cf_sbuf_loopcnt;
-extern int cf_sbuf_len;
extern int cf_tcp_keepalive;
extern int cf_tcp_keepcnt;
extern int cf_tcp_keepidle;
* send_pending();
*/
-extern int cf_sbuf_len;
-
/*
* 0 .. done_pos -- sent
* done_pos .. parse_pos -- parsed, to send
fd = open(cf_pidfile, O_WRONLY | O_CREAT | O_EXCL, 0644);
if (fd < 0)
- fatal_perror(cf_pidfile);
+ fatal_perror("%s", cf_pidfile);
res = safe_write(fd, buf, strlen(buf));
if (res < 0)
- fatal_perror(cf_pidfile);
+ fatal_perror("%s", cf_pidfile);
close(fd);
/* only remove when we have it actually written */