Support autoconf's --runstatedir option.
[oweals/tinc.git] / src / tincd.c
index 5b6b32940fb737491ec55f52c2653393ed6ed7c0..279c8723b7dcbd0309054a4ae7f90b9f8a5014c7 100644 (file)
@@ -363,6 +363,8 @@ static bool parse_options(int argc, char **argv) {
 /* This function prettyprints the key generation process */
 
 static int indicator(int a, int b, BN_GENCB *cb) {
+       (void)cb;
+
        switch(a) {
        case 0:
                fprintf(stderr, ".");
@@ -536,7 +538,7 @@ static void make_names(void) {
 #endif
 
        if(!pidfilename) {
-               xasprintf(&pidfilename, LOCALSTATEDIR "/run/%s.pid", identname);
+               xasprintf(&pidfilename, RUNSTATEDIR "/%s.pid", identname);
        }
 
        if(!logfilename) {