]> jfr.im git - solanum.git/blobdiff - bandb/bandb.c
Kill Travis
[solanum.git] / bandb / bandb.c
index b9ae9fca560ca9ed156b41e18fee946820915280..b5babba31dc85c72916dcc23d70cd3745291a3bc 100644 (file)
  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
- *
- * $Id: bandb.c 26094 2008-09-19 15:33:46Z androsyn $
  */
 #include "setup.h"
-#include <ratbox_lib.h>
+#include <rb_lib.h>
 #include <stdio.h>
 #include "rsdb.h"
-#include "common.h"
+#include "ircd_defs.h"
 
 
 #define MAXPARA 10
@@ -238,6 +236,9 @@ parse_request(rb_helper *helper)
 }
 
 
+static void
+error_cb(rb_helper *helper) __attribute__((noreturn));
+
 static void
 error_cb(rb_helper *helper)
 {
@@ -257,7 +258,7 @@ dummy_handler(int sig)
 static void
 setup_signals(void)
 {
-#ifndef WINDOWS
+#ifndef _WIN32
        struct sigaction act;
 
        act.sa_flags = 0;
@@ -284,13 +285,16 @@ setup_signals(void)
 }
 
 
+static void
+db_error_cb(const char *errstr) __attribute__((noreturn));
+
 static void
 db_error_cb(const char *errstr)
 {
        char buf[256];
        snprintf(buf, sizeof(buf), "! :%s", errstr);
        rb_helper_write(bandb_helper, "%s", buf);
-       rb_sleep(2 << 30, 0);
+       rb_sleep(1 << 30, 0);
        exit(1);
 }
 
@@ -302,9 +306,9 @@ main(int argc, char *argv[])
        if(bandb_helper == NULL)
        {
                fprintf(stderr,
-                       "This is the charybdis bandb for internal ircd use.\n");
+                       "This is the solanum bandb for internal ircd use.\n");
                fprintf(stderr,
-                       "You aren't supposed to run me directly (did you want bantool?). Exiting.\n");
+                       "You aren't supposed to run me directly (did you want solanum-bantool?). Exiting.\n");
                exit(1);
        }
        rsdb_init(db_error_cb);