mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:20:12 +01:00
added build info
This commit is contained in:
parent
81a8409dee
commit
00be0effe7
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#define VERSION "0.1.19"
|
#define VERSION "0.1.19"
|
||||||
|
|
||||||
#define PROGINFO VERSION ", Janos SUTO <sj@acts.hu>\n\n" CONFIGURE_PARAMS "\n"
|
#define BUILD 671
|
||||||
|
|
||||||
#define HOSTID "mailarchiver"
|
#define HOSTID "mailarchiver"
|
||||||
|
|
||||||
|
@ -25,9 +25,10 @@
|
|||||||
#include "tai.h"
|
#include "tai.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
int get_build(){
|
||||||
* fatal function for quitting
|
return BUILD;
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
|
||||||
void __fatal(char *s){
|
void __fatal(char *s){
|
||||||
fprintf(stderr, "%s\n", s);
|
fprintf(stderr, "%s\n", s);
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include <cfg.h>
|
#include <cfg.h>
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
|
||||||
|
int get_build();
|
||||||
void __fatal(char *s);
|
void __fatal(char *s);
|
||||||
long tvdiff(struct timeval a, struct timeval b);
|
long tvdiff(struct timeval a, struct timeval b);
|
||||||
int searchStringInBuffer(char *s, int len1, char *what, int len2);
|
int searchStringInBuffer(char *s, int len1, char *what, int len2);
|
||||||
|
@ -328,8 +328,8 @@ int main(int argc, char **argv){
|
|||||||
|
|
||||||
case 'v' :
|
case 'v' :
|
||||||
case 'V' :
|
case 'V' :
|
||||||
__fatal(PROGNAME " " PROGINFO);
|
printf("%s %s, build %d, Janos SUTO <sj@acts.hu>\n\n%s\n\n", PROGNAME, VERSION, get_build(), CONFIGURE_PARAMS);
|
||||||
break;
|
return 0;
|
||||||
|
|
||||||
case 'h' :
|
case 'h' :
|
||||||
default :
|
default :
|
||||||
@ -373,7 +373,7 @@ int main(int argc, char **argv){
|
|||||||
if(drop_privileges(pwd)) fatal(ERR_SETUID);
|
if(drop_privileges(pwd)) fatal(ERR_SETUID);
|
||||||
|
|
||||||
|
|
||||||
syslog(LOG_PRIORITY, "%s %s starting", PROGNAME, VERSION);
|
syslog(LOG_PRIORITY, "%s %s, build %d starting", PROGNAME, VERSION, get_build());
|
||||||
|
|
||||||
|
|
||||||
#if HAVE_DAEMON == 1
|
#if HAVE_DAEMON == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user