God I'm so dumb, can't use a dynamic build for versioning, so I've decided to
stick with the basic two numbering (major.minor) version scheme, although for
now I'll consider this a pre-alpha, first release should be an alpha followed by
0.1. Removed the tag from mdnsctl for now.
diff --git a/mdnsctl/Makefile b/mdnsctl/Makefile
index 484fdaa..52e25bc 100644
--- a/mdnsctl/Makefile
+++ b/mdnsctl/Makefile
@@ -3,9 +3,6 @@
PROG= mdnsctl
SRCS= mdnsctl.c parser.c mdnsl.c
-BUILD!=date '+%Y-%m-%d'
-
-CFLAGS+=-DBUILD="${BUILD}"
pCFLAGS+= -g -Wall
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
diff --git a/mdnsd/Makefile b/mdnsd/Makefile
index c4192b2..1099a3f 100644
--- a/mdnsd/Makefile
+++ b/mdnsd/Makefile
@@ -3,9 +3,9 @@
control.c mdns.c ../mdnsctl/mdnsl.c
#MAN= mdnsd.8
-BUILD!=date '+%Y-%m-%d'
+VERSION=pre-alpha (2010-12-31)
-CFLAGS+=-DBUILD=\"${BUILD}\"
+CFLAGS+=-DVERSION="\"${VERSION}\""
CFLAGS+= -g -Wall -I${.CURDIR}
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
diff --git a/mdnsd/mdns.c b/mdnsd/mdns.c
index d2196fc..5c47352 100644
--- a/mdnsd/mdns.c
+++ b/mdnsd/mdns.c
@@ -797,7 +797,7 @@
/* FALLTHROUGH */
case PGE_IF_STA_PROBING:
if ((pg->flags & PG_FLAG_INTERNAL) == 0 &&
- pfe_if->if_sent == 0)
+ pge_if->if_sent == 0)
control_notify_pg(pg->c, pg,
IMSG_CTL_GROUP_PROBING);
/* Build up our probe packet */
diff --git a/mdnsd/mdnsd.c b/mdnsd/mdnsd.c
index fe5f151..71cb495 100644
--- a/mdnsd/mdnsd.c
+++ b/mdnsd/mdnsd.c
@@ -61,7 +61,7 @@
__dead void
display_version(void)
{
- printf("OpenMdns Daemon (build %s)\n", BUILD);
+ printf("OpenMdns Daemon %s\n", VERSION);
printf("Copyright (C) 2010-2011 Christiano F. Haesbaert\n");
exit(0);