From db4123df8f45d81420f6c7c19f004256937f3c65 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Sun, 13 Mar 2005 06:36:15 +0000 Subject: [PATCH] Changed the define --- README | 2 +- src/Makefile | 2 +- src/cnd_mgetty.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index 0022d62..3ca9803 100644 --- a/README +++ b/README @@ -2,4 +2,4 @@ xcid requires X, obviously (pure Xt). Edit the makefile if not on FreeBSD to comment out -DSPEAKER. This is pretty hackish. For some debug stuff in either xcid or cidserv, use -DDEBUG in CPPFLAGS. -There is now cnd_mgetty, for use with mgetty's cnd-command parameter. No changes in the client are needed for this to work. +There is now cnd_mgetty, for use with mgetty's cnd-command parameter. No changes in the client are needed for this to work. To use it, change the ADDRS define at the top. diff --git a/src/Makefile b/src/Makefile index a691450..ff6351a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-g -Wall +CFLAGS=-g -Wall -DADDRS=\"/usr/local/etc/cidserv.conf\" #-DSPEAKER # -DDEBUG all: cidserv bcast hex cnd_mgetty diff --git a/src/cnd_mgetty.c b/src/cnd_mgetty.c index f75ec03..91d2356 100644 --- a/src/cnd_mgetty.c +++ b/src/cnd_mgetty.c @@ -21,10 +21,9 @@ #include #include #define VERSION "0.1" -#define ADDRS "/usr/local/etc/cidserv.conf" /* XXX: change this */ int nhosts = 0; char hosts[10][18]; -static const char rcsid[] = "$Amigan: cidserv/src/cnd_mgetty.c,v 1.1 2005/03/13 06:32:21 dcp1990 Exp $"; +static const char rcsid[] = "$Amigan: cidserv/src/cnd_mgetty.c,v 1.2 2005/03/13 06:36:16 dcp1990 Exp $"; void send_dgram(char* address, char* datar); void load_addrs(const char* fl); int parse_cid(char* tty, char* phone, char* name, int dist_r, char* called);