Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 793921a8ee4ae7f20e1fd2bbec5196bc83176b01 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 7 Aug 2022 12:25:24 -0700 |
| 4 | Subject: [PATCH 2/2] rules: Correct parameter types to Debug() calls |
| 5 | |
| 6 | Fixes |
| 7 | src/lib/rules.c:346:45: error: incompatible integer to pointer conversion passing 'char' to parameter of type 'char *'; take the address with & [-Wint-conversion] |
| 8 | src/lib/rules.c:804:53: error: incompatible integer to pointer conversion passing 'char' to parameter of type 'char *'; remove * [-Wint-conversion] Debug(1, "Mangle: unknown command %c in %s\n", *ptr, control); |
| 9 | ^~~~ |
| 10 | Upstream-Status: Submitted [https://github.com/cracklib/cracklib/pull/48] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | src/lib/rules.c | 4 ++-- |
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/lib/rules.c b/lib/rules.c |
| 17 | index 6e7a12a..4a34f91 100644 |
| 18 | --- a/lib/rules.c |
| 19 | +++ b/lib/rules.c |
| 20 | @@ -343,7 +343,7 @@ MatchClass(class, input) |
| 21 | break; |
| 22 | |
| 23 | default: |
| 24 | - Debug(1, "MatchClass: unknown class %c\n", class); |
| 25 | + Debug(1, "MatchClass: unknown class %c\n", &class); |
| 26 | return (0); |
| 27 | break; |
| 28 | } |
| 29 | @@ -801,7 +801,7 @@ Mangle(input, control) /* returns a pointer to a controlled Mangle */ |
| 30 | } |
| 31 | |
| 32 | default: |
| 33 | - Debug(1, "Mangle: unknown command %c in %s\n", *ptr, control); |
| 34 | + Debug(1, "Mangle: unknown command %c in %s\n", ptr, control); |
| 35 | return NULL; |
| 36 | break; |
| 37 | } |
| 38 | -- |
| 39 | 2.37.1 |
| 40 | |