Use Autoconf's PACKAGE_STRING for the --version and SHOW VERSION
output instead of our own macro. This changes the output format
slightly, but we might as well change to the standard format while
we're changing around SHOW VERSION.
#include <event.h>
-#define FULLVER PACKAGE_NAME " version " PACKAGE_VERSION
-
/* each state corresponds to a list */
enum SocketState {
CL_FREE, /* free_client_list */
}
pktbuf_write_RowDescription(buf, "s", "version");
- pktbuf_write_DataRow(buf, "s", FULLVER);
+ pktbuf_write_DataRow(buf, "s", PACKAGE_STRING);
admin_flush(admin, buf, "SHOW");
cf_verbose++;
break;
case 'V':
- printf("%s\n", FULLVER);
+ printf("%s\n", PACKAGE_STRING);
return 0;
case 'd':
cf_daemon = 1;