From ecb7abc8075bc1d1bb1012b5c874269b4a99cd4f Mon Sep 17 00:00:00 2001 From: cgf Date: Mon, 30 Sep 2002 03:01:17 +0000 Subject: [PATCH] * cygpath.cc (close_arg): Remove unused static. * mkgroup.c (enum_local_users): Avoid compiler warning. (enum_users): Ditto. * mkpasswd.c: Ditto throughout. * ssp.c: Ditto throughout. --- winsup/utils/ChangeLog | 8 ++++++++ winsup/utils/cygpath.cc | 1 - winsup/utils/mkgroup.c | 4 ++-- winsup/utils/mkpasswd.c | 1 + winsup/utils/ssp.c | 18 +++++++++--------- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 01bdd561cb..666f57546c 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,11 @@ +2002-09-29 Christopher Faylor + + * cygpath.cc (close_arg): Remove unused static. + * mkgroup.c (enum_local_users): Avoid compiler warning. + (enum_users): Ditto. + * mkpasswd.c: Ditto throughout. + * ssp.c: Ditto throughout. + 2002-09-18 Christopher Faylor * cygcheck.cc: Include sys/time.h rather than time.h to avoid a diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index 8ba2811c02..93628ffeb4 100644 --- a/winsup/utils/cygpath.cc +++ b/winsup/utils/cygpath.cc @@ -25,7 +25,6 @@ static const char version[] = "$Revision$"; static char *prog_name; static char *file_arg; -static char *close_arg; static int path_flag, unix_flag, windows_flag, absolute_flag; static int shortname_flag, longname_flag; static int ignore_flag, allusers_flag, output_flag; diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c index 73a5cb4037..d378893602 100644 --- a/winsup/utils/mkgroup.c +++ b/winsup/utils/mkgroup.c @@ -140,7 +140,7 @@ enum_local_users (LPWSTR groupname) MAX_PREFERRED_LENGTH, &entries, &total, &reshdl)) { - int i, first = 1; + unsigned i, first = 1; for (i = 0; i < entries; ++i) if (buf1[i].lgrmi1_sidusage == SidTypeUser) @@ -259,7 +259,7 @@ enum_users (LPWSTR servername, LPWSTR groupname) MAX_PREFERRED_LENGTH, &entries, &total, &reshdl)) { - int i, first = 1; + unsigned i, first = 1; for (i = 0; i < entries; ++i) { diff --git a/winsup/utils/mkpasswd.c b/winsup/utils/mkpasswd.c index 767c1b8164..5c56fa98b2 100644 --- a/winsup/utils/mkpasswd.c +++ b/winsup/utils/mkpasswd.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/winsup/utils/ssp.c b/winsup/utils/ssp.c index c6379fbfbe..611c57a551 100644 --- a/winsup/utils/ssp.c +++ b/winsup/utils/ssp.c @@ -72,8 +72,8 @@ typedef struct { unsigned char real_byte; } PendingBreakpoints; -int low_pc=0, high_pc=0; -unsigned int last_pc=0, pc, last_sp=0, sp; +unsigned low_pc=0, high_pc=0; +unsigned last_pc=0, pc, last_sp=0, sp; int total_cycles, count; HANDLE hProcess; PROCESS_INFORMATION procinfo; @@ -94,10 +94,10 @@ int dll_counts = 0; int verbose = 0; #define MAXTHREADS 100 -int active_thread_ids[MAXTHREADS]; +DWORD active_thread_ids[MAXTHREADS]; HANDLE active_threads[MAXTHREADS]; -int thread_step_flags[MAXTHREADS]; -int thread_return_address[MAXTHREADS]; +DWORD thread_step_flags[MAXTHREADS]; +DWORD thread_return_address[MAXTHREADS]; int num_active_threads = 0; int suspended_count=0; @@ -158,7 +158,7 @@ remove_breakpoint (unsigned int address) } static HANDLE -lookup_thread_id (int threadId, int *tix) +lookup_thread_id (DWORD threadId, int *tix) { int i; for (i=0; i