Package: netmask / 2.4.4-1

0003-Dont-include-the-build-timestamp-in-the-binary.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From f64a3e17869d93f584461005fbca2b6b9b607fb5 Mon Sep 17 00:00:00 2001
From: Guilhem Moulin <guilhem@guilhem.org>
Date: Mon, 5 Oct 2015 18:00:13 +0200
Subject: [PATCH] Don't include the build timestamp in the binary.

---
 main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/main.c b/main.c
index 8faec1e..674b5f4 100644
--- a/main.c
+++ b/main.c
@@ -61,7 +61,6 @@ typedef enum {
 } output_t;
 
 char version[] = "netmask, version "VERSION;
-char vversion[] = __DATE__" "__TIME__;
 char usage[] = "Try `%s --help' for more information.\n";
 char *progname = NULL;
 
@@ -299,8 +298,7 @@ int main(int argc, char *argv[]) {
    default: lose = 1; break;
   }
   if(v) {
-    if(v == 1) fprintf(stderr, "%s\n", version);
-    else fprintf(stderr, "%s, %s\n", version, vversion);
+    fprintf(stderr, "%s\n", version);
     if(!h) exit(0);
   }
   if(h) {
-- 
2.6.0