Description of Problem: Hello there, I just tried to compile package nmap-3.00-1 from Redhat 8.0. Here are some of the compiler messages. tcpip.c:416: warning: operation on `i' may be undefined tcpip.c:459: warning: operation on `i' may be undefined Here is a patch which fixes the messages. *** ./tcpip.c.old 2002-11-18 11:55:04.000000000 +0000 --- ./tcpip.c 2002-11-18 11:56:58.000000000 +0000 *************** *** 413,419 **** } if (readdata && i < tot_len) { printf("Data portion:\n"); ! while(i < tot_len) printf("%2X%c", data[i], (++i%16)? ' ' : '\n'); printf("\n"); } return 0; --- 413,423 ---- } if (readdata && i < tot_len) { printf("Data portion:\n"); ! while(i < tot_len) ! { ! printf("%2X%c", data[ i], ((i + 1) % 16) ? ' ' : '\n'); ! ++i; ! } printf("\n"); } return 0; *************** *** 456,462 **** } if (readdata && i < tot_len) { printf("Data portion:\n"); ! while(i < tot_len) printf("%2X%c", data[i], (++i%16)? ' ' : '\n'); printf("\n"); } return 0; --- 460,470 ---- } if (readdata && i < tot_len) { printf("Data portion:\n"); ! while(i < tot_len) ! { ! printf("%2X%c", data[ i], ((i + 1) % 16) ? ' ' : '\n'); ! ++i; ! } printf("\n"); } return 0; Version-Release number of selected component (if applicable): How Reproducible: Steps to Reproduce: 1. 2. 3. Actual Results: Expected Results: Additional Information:
fixed in nmap-3.00-3, please report upstream...