1 # fix at least all format warnings
2 --- spfmilter-2.001/iptab.c 2015-02-15 04:03:38.000000000 +0000
3 +++ spfmilter-2.001/iptab.c.new 2022-02-06 21:35:00.906962490 +0000
6 for ( i = 0; i < 8; ++i )
8 - if ( sscanf( str, "%x:%x:%x:%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6], &s[7] ) == 8 )
9 + if ( sscanf( str, "%d:%d:%d:%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6], &s[7] ) == 8 )
11 - else if ( sscanf( str, "%x:%x:%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6] ) == 7 )
12 + else if ( sscanf( str, "%d:%d:%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5], &s[6] ) == 7 )
14 - else if ( sscanf( str, "%x:%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5] ) == 6 )
15 + else if ( sscanf( str, "%d:%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4], &s[5] ) == 6 )
17 - else if ( sscanf( str, "%x:%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3], &s[4] ) == 5 )
18 + else if ( sscanf( str, "%d:%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3], &s[4] ) == 5 )
20 - else if ( sscanf( str, "%x:%x:%x:%x", &s[0], &s[1], &s[2], &s[3] ) == 4 )
21 + else if ( sscanf( str, "%d:%d:%d:%d", &s[0], &s[1], &s[2], &s[3] ) == 4 )
23 - else if ( sscanf( str, "%x:%x:%x", &s[0], &s[1], &s[2] ) == 3 )
24 + else if ( sscanf( str, "%d:%d:%d", &s[0], &s[1], &s[2] ) == 3 )
26 - else if ( sscanf( str, "%x:%x", &s[0], &s[1] ) == 2 )
27 + else if ( sscanf( str, "%d:%d", &s[0], &s[1] ) == 2 )
29 - else if ( sscanf( str, "%x", &s[0] ) == 1 )
30 + else if ( sscanf( str, "%d", &s[0] ) == 1 )
35 slash = strchr( str, '/' );
36 if ( slash != (const char*) 0 )
38 - if ( sscanf( slash, "/%d", &ipa->prefixlen ) != 1 )
39 + if ( sscanf( slash, "/%x", &ipa->prefixlen ) != 1 )
41 err = ite_widthinvalid;