File: 10warnings.dpatch

package info (click to toggle)
postfix 2.3.8-2%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 15,744 kB
  • ctags: 11,426
  • sloc: ansic: 81,810; makefile: 10,743; sh: 7,874; perl: 2,468; awk: 41
file content (28 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (2)
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
27
28
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10warnings.dpatch by  <lamont@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./src/global/dict_ldap.c /tmp/dpep-work.1J5k3l/postfix/src/global/dict_ldap.c
--- ./src/global/dict_ldap.c	2005-04-14 10:14:18.000000000 -0600
+++ /tmp/dpep-work.1J5k3l/postfix/src/global/dict_ldap.c	2006-02-13 10:38:22.000000000 -0700
@@ -273,7 +273,7 @@
      * character requires quoting per the RFC.
      */
     while (*sub)
-    	if ((len = strcspn(sub, " \t\"#+,;<>\\")) > 0) {
+    	if ((len = strcspn((char*)sub, " \t\"#+,;<>\\")) > 0) {
 	    vstring_strncat(result, sub, len);
 	    sub += len;
 	} else
@@ -295,7 +295,7 @@
      * parameter and then this more comprehensive mechanism.
      */
     while (*sub)
-    	if ((len = strcspn(sub, "*()\\")) > 0) {
+    	if ((len = strcspn((char*)sub, "*()\\")) > 0) {
 	    vstring_strncat(result, sub, len);
 	    sub += len;
 	} else