* 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.
This commit is contained in:
parent
9d1e72a175
commit
0fa64fa3a7
|
@ -1,3 +1,11 @@
|
||||||
|
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>
|
2002-09-18 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* cygcheck.cc: Include sys/time.h rather than time.h to avoid a
|
* cygcheck.cc: Include sys/time.h rather than time.h to avoid a
|
||||||
|
|
|
@ -25,7 +25,6 @@ static const char version[] = "$Revision$";
|
||||||
|
|
||||||
static char *prog_name;
|
static char *prog_name;
|
||||||
static char *file_arg;
|
static char *file_arg;
|
||||||
static char *close_arg;
|
|
||||||
static int path_flag, unix_flag, windows_flag, absolute_flag;
|
static int path_flag, unix_flag, windows_flag, absolute_flag;
|
||||||
static int shortname_flag, longname_flag;
|
static int shortname_flag, longname_flag;
|
||||||
static int ignore_flag, allusers_flag, output_flag;
|
static int ignore_flag, allusers_flag, output_flag;
|
||||||
|
|
|
@ -140,7 +140,7 @@ enum_local_users (LPWSTR groupname)
|
||||||
MAX_PREFERRED_LENGTH,
|
MAX_PREFERRED_LENGTH,
|
||||||
&entries, &total, &reshdl))
|
&entries, &total, &reshdl))
|
||||||
{
|
{
|
||||||
int i, first = 1;
|
unsigned i, first = 1;
|
||||||
|
|
||||||
for (i = 0; i < entries; ++i)
|
for (i = 0; i < entries; ++i)
|
||||||
if (buf1[i].lgrmi1_sidusage == SidTypeUser)
|
if (buf1[i].lgrmi1_sidusage == SidTypeUser)
|
||||||
|
@ -259,7 +259,7 @@ enum_users (LPWSTR servername, LPWSTR groupname)
|
||||||
MAX_PREFERRED_LENGTH,
|
MAX_PREFERRED_LENGTH,
|
||||||
&entries, &total, &reshdl))
|
&entries, &total, &reshdl))
|
||||||
{
|
{
|
||||||
int i, first = 1;
|
unsigned i, first = 1;
|
||||||
|
|
||||||
for (i = 0; i < entries; ++i)
|
for (i = 0; i < entries; ++i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <sys/cygwin.h>
|
#include <sys/cygwin.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <lmaccess.h>
|
#include <lmaccess.h>
|
||||||
|
|
|
@ -72,8 +72,8 @@ typedef struct {
|
||||||
unsigned char real_byte;
|
unsigned char real_byte;
|
||||||
} PendingBreakpoints;
|
} PendingBreakpoints;
|
||||||
|
|
||||||
int low_pc=0, high_pc=0;
|
unsigned low_pc=0, high_pc=0;
|
||||||
unsigned int last_pc=0, pc, last_sp=0, sp;
|
unsigned last_pc=0, pc, last_sp=0, sp;
|
||||||
int total_cycles, count;
|
int total_cycles, count;
|
||||||
HANDLE hProcess;
|
HANDLE hProcess;
|
||||||
PROCESS_INFORMATION procinfo;
|
PROCESS_INFORMATION procinfo;
|
||||||
|
@ -94,10 +94,10 @@ int dll_counts = 0;
|
||||||
int verbose = 0;
|
int verbose = 0;
|
||||||
|
|
||||||
#define MAXTHREADS 100
|
#define MAXTHREADS 100
|
||||||
int active_thread_ids[MAXTHREADS];
|
DWORD active_thread_ids[MAXTHREADS];
|
||||||
HANDLE active_threads[MAXTHREADS];
|
HANDLE active_threads[MAXTHREADS];
|
||||||
int thread_step_flags[MAXTHREADS];
|
DWORD thread_step_flags[MAXTHREADS];
|
||||||
int thread_return_address[MAXTHREADS];
|
DWORD thread_return_address[MAXTHREADS];
|
||||||
int num_active_threads = 0;
|
int num_active_threads = 0;
|
||||||
int suspended_count=0;
|
int suspended_count=0;
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ remove_breakpoint (unsigned int address)
|
||||||
}
|
}
|
||||||
|
|
||||||
static HANDLE
|
static HANDLE
|
||||||
lookup_thread_id (int threadId, int *tix)
|
lookup_thread_id (DWORD threadId, int *tix)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i=0; i<num_active_threads; i++)
|
for (i=0; i<num_active_threads; i++)
|
||||||
|
@ -429,7 +429,7 @@ run_program (char *cmdline)
|
||||||
if (remove_breakpoint ((int)event.u.Exception.ExceptionRecord.ExceptionAddress))
|
if (remove_breakpoint ((int)event.u.Exception.ExceptionRecord.ExceptionAddress))
|
||||||
{
|
{
|
||||||
context.Eip --;
|
context.Eip --;
|
||||||
if (rv != -1)
|
if (!rv)
|
||||||
SetThreadContext (hThread, &context);
|
SetThreadContext (hThread, &context);
|
||||||
if (ReadProcessMemory (hProcess, (void *)context.Esp, &rv, 4, &rv))
|
if (ReadProcessMemory (hProcess, (void *)context.Esp, &rv, 4, &rv))
|
||||||
thread_return_address[tix] = rv;
|
thread_return_address[tix] = rv;
|
||||||
|
@ -515,7 +515,7 @@ run_program (char *cmdline)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rv != -1)
|
if (!rv)
|
||||||
{
|
{
|
||||||
if (pc == thread_return_address[tix])
|
if (pc == thread_return_address[tix])
|
||||||
{
|
{
|
||||||
|
@ -830,7 +830,7 @@ int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
int c, i;
|
int c, i;
|
||||||
int total_pcount, total_scount;
|
int total_pcount = 0, total_scount = 0;
|
||||||
FILE *gmon;
|
FILE *gmon;
|
||||||
|
|
||||||
setbuf (stdout, 0);
|
setbuf (stdout, 0);
|
||||||
|
|
Loading…
Reference in New Issue