]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: Move version string to define
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 17 Oct 2016 06:46:22 +0000 (09:46 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 19 Oct 2016 13:43:30 +0000 (16:43 +0300)
src/lib-program-client/program-client-remote.c

index 2b4b10c4933f20c9525845a369fc8629ee74a14a..e70def42242abc23b7fbdbab173a3cbf97956355 100644 (file)
 #include <sys/wait.h>
 #include <sysexits.h>
 
+#define PROGRAM_CLIENT_VERSION_MAJOR "3"
+#define PROGRAM_CLIENT_VERSION_MINOR "0"
+
+#define PROGRAM_CLIENT_VERSION_STRING "VERSION\tscript\t" \
+               PROGRAM_CLIENT_VERSION_MAJOR "\t" \
+               PROGRAM_CLIENT_VERSION_MINOR "\n"
+
 /*
  * Script client input stream
  */
@@ -206,7 +213,7 @@ void program_client_remote_connected(struct program_client *pclient)
        }
 
        str = t_str_new(1024);
-       str_append(str, "VERSION\tscript\t3\t0\n");
+       str_append(str, PROGRAM_CLIENT_VERSION_STRING);
        if (slclient->noreply)
                str_append(str, "noreply\n");
        else