diff options
author | Christoph Gysin | 2015-09-30 23:02:02 +0300 |
---|---|---|
committer | Christoph Gysin | 2015-09-30 23:02:02 +0300 |
commit | ddd5a37161756fa8c3ebdddd3cf19634932e8b42 (patch) | |
tree | bddf02bd28ac4eed2a6b212b4d177f9179e6e0dc /fix-infinite-loop-on-powerpc.patch | |
download | aur-ddd5a37161756fa8c3ebdddd3cf19634932e8b42.tar.gz |
initial commit
Diffstat (limited to 'fix-infinite-loop-on-powerpc.patch')
-rw-r--r-- | fix-infinite-loop-on-powerpc.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fix-infinite-loop-on-powerpc.patch b/fix-infinite-loop-on-powerpc.patch new file mode 100644 index 000000000000..1efde8843b9e --- /dev/null +++ b/fix-infinite-loop-on-powerpc.patch @@ -0,0 +1,26 @@ +Description: Fix infinite loop on powerpc + On the ppc C compiler, char is an unsigned data type. This means that + no variable of type char can ever compare equal to the int value -1. gcc + tries to warn you about this when you compile tcpick, by saying: + . + args.c:195: warning: comparison is always true due to limited range of + data type + . + tcpick therefore never makes it past the getopt loop. The following + patch fixes the problem. +Author: Alan Curry <pacman@world.std.com> +Origin: other, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=327327#5 +Bug-Debian: http://bugs.debian.org/327327 +Last-Update: 2005-09-09 + +--- a/src/args.c ++++ b/src/args.c +@@ -149,7 +149,7 @@ parse_display_rebuild ( char * s ) + void + parse_args(int argc, char ** argv) + { +- char opt; ++ int opt; + + #ifdef HAVE_GETOPT_LONG + static struct option long_options[]= |