]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/blame - src/patches/sarg/sarg-2.3.11-format.patch
sarg: Fix build with newer GCCs
[people/ummeegge/ipfire-2.x.git] / src / patches / sarg / sarg-2.3.11-format.patch
CommitLineData
7f156022
MT
1diff -wbBur sarg-2.3.11/index.c sarg-2.3.11.my/index.c
2--- sarg-2.3.11/index.c 2018-01-14 21:00:22.000000000 +0300
3+++ sarg-2.3.11.my/index.c 2018-02-19 12:20:15.896203347 +0300
4@@ -208,7 +208,7 @@
5 m1=month / 16;
6 if(month % 16 != 0) {
7 m2=month % 16;
8- sprintf(monthnum,"%02d-%02d",m1,m2);
9+ sprintf(monthnum,"%02u-%02u",(unsigned int)m1,(unsigned int)m2);
10 sprintf(monthname1,"%02d",m1);
11 sprintf(monthname2,"%02d",m2);
12 name_month(monthname1,sizeof(monthname1));
13@@ -269,7 +269,7 @@
14 d1=day / 32;
15 if(day % 32 != 0) {
16 d2=day % 32;
17- sprintf(daynum,"%02d-%02d",d1,d2);
18+ sprintf(daynum,"%02u-%02u",(unsigned int)d1,(unsigned int)d2);
19 } else {
20 sprintf(daynum,"%02d",d1);
21 }
22diff -wbBur sarg-2.3.11/report.c sarg-2.3.11.my/report.c
23--- sarg-2.3.11/report.c 2018-01-14 21:00:23.000000000 +0300
24+++ sarg-2.3.11.my/report.c 2018-02-19 12:18:45.151207192 +0300
eaec148f
AF
25@@ -54,7 +54,7 @@
26 char accsmart[MAXLEN];
27 char crc2[MAXLEN/2 -1];
28 char siteind[MAX_TRUNCATED_URL];
29- char arqtt[256];
7f156022 30+ char arqtt[267];
eaec148f
AF
31 char *oldurltt=NULL;
32 char oldaccdiatt[11],oldacchoratt[9];
33 char tmp3[MAXLEN];
7f156022
MT
34diff -wbBur sarg-2.3.11/userinfo.c sarg-2.3.11.my/userinfo.c
35--- sarg-2.3.11/userinfo.c 2013-06-01 22:02:04.000000000 +0400
36+++ sarg-2.3.11.my/userinfo.c 2018-02-19 12:21:16.103200796 +0300
eaec148f
AF
37@@ -67,7 +67,7 @@
38 int skip;
39 int flen;
40 int count, clen;
41- char cstr[9];
7f156022 42+ char cstr[11];
eaec148f
AF
43
44 last=NULL;
45 for (group=first_user_group ; group ; group=group->next) {