File: 0006_avoid-signed-unsigned-warning.patch

package info (click to toggle)
ldap2zone 0.2-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 300 kB
  • sloc: ansic: 1,968; sh: 685; makefile: 19
file content (26 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (5)
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
Description: Use size_t instead of int to avoid signed/unsigned warning
 Inspired by commit eae6833f5e7318d84399f48931490d98d4a76ac1 found on 
 <URL: https://github.com/FransUrbo/bind9-ldap >.
Author: Petter Reinholdtsen <pere@hungry.com>
Last-Update: 2014-10-01

--- ldap2zone-0.2.orig/ldap2zone.c
+++ ldap2zone-0.2/ldap2zone.c
@@ -63,7 +63,7 @@ void assstack_insertsorted(struct asssta
 
 void printsoa(struct string *soa) {
     char *s;
-    int i;
+    size_t i;
     
     s = (char *)soa->data;
     i = 0;
@@ -115,7 +115,7 @@ void printrrs(char *defaultttl, struct a
     struct assstack_entry *stack;
     char *s;
     int first;
-    int i;
+    size_t i;
     char *ttl, *type;
     int top;