diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-11 02:56:40 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-11 02:56:40 +0000 |
commit | bd79b736d4f7d223f34850db9a0805455fc2b3db (patch) | |
tree | 11709b4f6659dba627ea556bbd58fc01aa7e0047 /winsup/utils/cygcheck.cc | |
parent | b07b167eec8af05999373a511f9e8fad48285caf (diff) | |
download | cygnal-bd79b736d4f7d223f34850db9a0805455fc2b3db.tar.gz cygnal-bd79b736d4f7d223f34850db9a0805455fc2b3db.tar.bz2 cygnal-bd79b736d4f7d223f34850db9a0805455fc2b3db.zip |
* 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.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r-- | winsup/utils/cygcheck.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index 006bc15e0..693bd237e 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -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; |