+2002-09-29 Christopher Faylor <cgf@redhat.com>
+
+ * 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 <cgf@redhat.com>
* cygcheck.cc: Include sys/time.h rather than time.h to avoid a
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)
MAX_PREFERRED_LENGTH,
&entries, &total, &reshdl))
{
- int i, first = 1;
+ unsigned i, first = 1;
for (i = 0; i < entries; ++i)
{
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;
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;
}
static HANDLE
-lookup_thread_id (int threadId, int *tix)
+lookup_thread_id (DWORD threadId, int *tix)
{
int i;
for (i=0; i<num_active_threads; i++)
if (remove_breakpoint ((int)event.u.Exception.ExceptionRecord.ExceptionAddress))
{
context.Eip --;
- if (rv != -1)
+ if (!rv)
SetThreadContext (hThread, &context);
if (ReadProcessMemory (hProcess, (void *)context.Esp, &rv, 4, &rv))
thread_return_address[tix] = rv;
break;
}
- if (rv != -1)
+ if (!rv)
{
if (pc == thread_return_address[tix])
{
main (int argc, char **argv)
{
int c, i;
- int total_pcount, total_scount;
+ int total_pcount = 0, total_scount = 0;
FILE *gmon;
setbuf (stdout, 0);