* Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.

* cygcheck.cc: Just include <getopt.h> rather than cygwin version.
(pretty_id): Avoid compiler warnings.
* cygpath.cc (usage): Ditto.
This commit is contained in:
Christopher Faylor 2003-09-11 02:56:40 +00:00
parent b07b167eec
commit bd79b736d4
4 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2003-09-10 Christopher Faylor <cgf@redhat.com>
* Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
* cygcheck.cc: Just include <getopt.h> rather than cygwin version.
(pretty_id): Avoid compiler warnings.
* cygpath.cc (usage): Ditto.
2003-09-10 Christopher Faylor <cgf@redhat.com>
* Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.

View File

@ -152,10 +152,10 @@ endif
cygcheck.o: cygcheck.cc
ifdef VERBOSE
${CXX} $c -o $(@D)/$(basename $@)$o $(MINGW_CXXFLAGS) -I$(updir) $<
${MINGW_CXX} $c -o $(@D)/$(basename $@)$o $(MINGW_CXXFLAGS) -I$(updir) $<
else
@echo $(CXX) $c -o $(@D)/$(basename $@)$o $(MINGW_CXXFLAGS) ... $^;\
${CXX} $c -o $(@D)/$(basename $@)$o $(MINGW_CXXFLAGS) -I$(updir) $<
@echo $(MINGW_CXX) $c -o $(@D)/$(basename $@)$o $(MINGW_CXXFLAGS) ... $^;\
${MINGW_CXX} $c -o $(@D)/$(basename $@)$o $(MINGW_CXXFLAGS) -I$(updir) $<
endif
strace.o: strace.cc

View File

@ -16,9 +16,9 @@
#include <io.h>
#include <windows.h>
#include "path.h"
#include <getopt.h>
#include "cygwin/include/sys/cygwin.h"
#include "cygwin/include/mntent.h"
#include "cygwin/include/getopt.h"
int verbose = 0;
int registry = 0;
@ -775,7 +775,7 @@ pretty_id (const char *s, char *cygwin, size_t cyglen)
putenv (cygwin);
char *id = cygpath ("/bin/id.exe", NULL);
for (char *p = id; p = strchr (p, '/'); p++)
for (char *p = id; (p = strchr (p, '/')); p++)
*p = '\\';
if (access (id, X_OK))
@ -805,7 +805,7 @@ pretty_id (const char *s, char *cygwin, size_t cyglen)
}
printf ("\nOutput from %s (%s)\n", id, s);
int szmaybe = strlen ("UID: ") + strlen (uid);
size_t szmaybe = strlen ("UID: ") + strlen (uid);
if (sz < szmaybe)
sz = szmaybe;
sz += 1;

View File

@ -66,7 +66,7 @@ usage (FILE * stream, int status)
Usage: %s (-d|-m|-u|-w|-t TYPE) [-c HANDLE] [-f FILE] [options] NAME\n\
%s [-ADHPSW] \n\
Convert Unix and Windows format paths, or output system path information\n\
\n\
\n\
Output type options:\n\
-d, --dos print DOS (short) form of NAME (C:\\PROGRA~1\\)\n\
-m, --mixed like --windows, but with regular slashes (C:/WINNT)\n\