mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-16 21:33:30 +01:00
26 lines
843 B
Diff
26 lines
843 B
Diff
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[]=
|