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/sarg/files: sarg-2.3.8-long-long-int.patch
Date: Tue, 01 Apr 2014 11:48:40
Message-Id: 20140401114837.31A3620060@flycatcher.gentoo.org
1 jer 14/04/01 11:48:37
2
3 Added: sarg-2.3.8-long-long-int.patch
4 Log:
5 Version bump (bug #506334 by Nikoli).
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.1 net-analyzer/sarg/files/sarg-2.3.8-long-long-int.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sarg/files/sarg-2.3.8-long-long-int.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sarg/files/sarg-2.3.8-long-long-int.patch?rev=1.1&content-type=text/plain
14
15 Index: sarg-2.3.8-long-long-int.patch
16 ===================================================================
17 log.c:128: nbytes is defined as a long long int
18
19
20 --- a/log.c
21 +++ b/log.c
22 @@ -1503,14 +1503,14 @@
23 }
24 }
25
26 - if (fprintf(ufile->file, "%s\t%s\t%s\t%s\t%"PRIi64"\t%s\t%ld\t%s\n",dia,hora,ip,url,nbytes,code,elap_time,smartfilter)<=0) {
27 + if (fprintf(ufile->file, "%s\t%s\t%s\t%s\t%lld\t%s\t%ld\t%s\n",dia,hora,ip,url,nbytes,code,elap_time,smartfilter)<=0) {
28 debuga(_("Write error in the log file of user %s\n"),user);
29 exit(EXIT_FAILURE);
30 }
31 records_kept++;
32
33 if(fp_log && ilf!=ILF_Sarg)
34 - fprintf(fp_log, "%s\t%s\t%s\t%s\t%s\t%"PRIi64"\t%s\t%ld\t%s\n",dia,hora,user,ip,url,nbytes,code,elap_time,smartfilter);
35 + fprintf(fp_log, "%s\t%s\t%s\t%s\t%s\t%lld\t%s\t%ld\t%s\n",dia,hora,user,ip,url,nbytes,code,elap_time,smartfilter);
36
37 totregsg++;
38
39 @@ -1561,7 +1561,7 @@
40 printf("FUNC=\t%s\n",fun);
41 printf("URL=\t%s\n",url);
42 printf("CODE=\t%s\n",code);
43 - printf("LEN=\t%"PRIi64"\n",nbytes);
44 + printf("LEN=\t%lld\n",nbytes);
45 }
46 }
47 if (!from_stdin) {