File: fix-char-signedness.patch

package info (click to toggle)
etherpuppet 0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104 kB
  • ctags: 85
  • sloc: ansic: 997; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Apply upstream fix to make package usable on systems with unsigned char.
Author: Peter Michael Green <plugwash@raspbian.org>

--- etherpuppet-0.3.orig/etherpuppet.c
+++ etherpuppet-0.3/etherpuppet.c
@@ -227,7 +227,8 @@ int main(int argc, char *argv[])
 	struct sigaction sa;
 
 
-	char c, *p, *ip, *manual_bpf_arg;
+        int c;
+	char *p, *ip, *manual_bpf_arg;
 	unsigned char buf[MTU+4];
 	char *iface = NULL;
 	fd_set readset;