Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-11 06:56:40 +0400
committerChristopher Faylor <me@cgf.cx>2003-09-11 06:56:40 +0400
commitbd79b736d4f7d223f34850db9a0805455fc2b3db (patch)
tree11709b4f6659dba627ea556bbd58fc01aa7e0047 /winsup/utils/cygcheck.cc
parentb07b167eec8af05999373a511f9e8fad48285caf (diff)
* 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.cc6
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;