Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nsat/files: nsat-1.5-va_list.patch
Date: Sun, 06 Jul 2014 02:14:42
Message-Id: 20140706021437.2065E2004F@flycatcher.gentoo.org
1 jer 14/07/06 02:14:37
2
3 Modified: nsat-1.5-va_list.patch
4 Log:
5 Improve efficiency somewhat.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.2 net-analyzer/nsat/files/nsat-1.5-va_list.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch?r1=1.1&r2=1.2
15
16 Index: nsat-1.5-va_list.patch
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- nsat-1.5-va_list.patch 6 Jul 2014 02:06:56 -0000 1.1
23 +++ nsat-1.5-va_list.patch 6 Jul 2014 02:14:36 -0000 1.2
24 @@ -1,12 +1,27 @@
25 --- a/src/Logging.cpp
26 +++ b/src/Logging.cpp
27 -@@ -94,6 +94,9 @@
28 - if(fp!=NULL)
29 +@@ -89,16 +89,17 @@
30 + if((pi.Foreground) && (out!=NULL))
31 + fprintf(stdout, "%s %s ", out, hn);
32 +
33 +- va_start(va, fmt);
34 +-
35 +- if(fp!=NULL)
36 ++ if(fp!=NULL) {
37 ++ va_start(va, fmt);
38 vfprintf(fp, fmt, va);
39 ++ va_end(va);
40 ++ }
41
42 -+ va_end(va);
43 -+ va_start(va, fmt);
44 -+
45 - if((pi.Foreground) && (out!=NULL))
46 +- if((pi.Foreground) && (out!=NULL))
47 ++ if((pi.Foreground) && (out!=NULL)) {
48 ++ va_start(va, fmt);
49 vfprintf(stdout, fmt, va);
50 +-
51 +- va_end(va);
52 +-
53 ++ va_end(va);
54 ++ }
55 + if(fp!=NULL)
56 + fprintf(fp, "\n");