summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-10-31 16:43:44 +0100
committerMartin Mares <mj@ucw.cz>1999-10-31 16:43:44 +0100
commitb9672a845f7ff7d2441e21746566eacc51f274b7 (patch)
treebb2fad2a4b30083234474698c4ef935c2c0548fc /sysdep
parent7d3aab1c1643e8b2bcff7f856e0d4455fa0ba4b4 (diff)
downloadbird-b9672a845f7ff7d2441e21746566eacc51f274b7.tar
bird-b9672a845f7ff7d2441e21746566eacc51f274b7.zip
The CLI I/O functions work as desired.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/config.h3
-rw-r--r--sysdep/unix/main.c10
2 files changed, 4 insertions, 9 deletions
diff --git a/sysdep/config.h b/sysdep/config.h
index 4699b4f..08526c8 100644
--- a/sysdep/config.h
+++ b/sysdep/config.h
@@ -6,6 +6,9 @@
#ifndef _BIRD_CONFIG_H_
#define _BIRD_CONFIG_H_
+/* BIRD version */
+#define BIRD_VERSION "0.0.0"
+
/* Include parameters determined by configure script */
#include "sysdep/autoconf.h"
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index f717fb0..d5ea10b 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -93,12 +93,6 @@ async_config(void)
static sock *cli_sk;
-void
-cli_disconnect(cli *c)
-{
- bug("CLI DISCONNECT: Not implemented"); /* FIXME */
-}
-
int
cli_write(cli *c)
{
@@ -146,7 +140,6 @@ cli_get_command(cli *c)
static int
cli_rx(sock *s, int size)
{
- debug("CLI RX\n");
cli_kick(s->data);
return 0;
}
@@ -156,7 +149,6 @@ cli_tx(sock *s)
{
cli *c = s->data;
- debug("CLI TX\n");
if (cli_write(c))
cli_written(c);
}
@@ -313,7 +305,7 @@ main(int argc, char **argv)
setvbuf(stderr, NULL, _IONBF, 0);
parse_args(argc, argv);
- log(L_INFO "Launching BIRD 0.0.0...");
+ log(L_INFO "Launching BIRD " BIRD_VERSION "...");
debug("Initializing.\n");
resource_init();