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>2002-01-22 06:17:59 +0300
committerChristopher Faylor <me@cgf.cx>2002-01-22 06:17:59 +0300
commitad466e2f75653e042beb5290b0ac00a8343b87dd (patch)
tree4425a794074de07cd4a5c2372e454d54c0be0e1e /winsup/utils/cygcheck.cc
parentf3647dd7e6ad65cd14c201eb22e3a40028456cf6 (diff)
* Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
* cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning. (dump_sysinfo): Make variables unsigned to quiet g++ warnings. * strace.cc (version_string): Rename from SCCSid. (add_child): Remove unused variable. (version): Use version_string. Avoid use of fprintf.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r--winsup/utils/cygcheck.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index a229085e8..1c4708200 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -352,7 +352,8 @@ cygwin_info (HANDLE h)
return;
}
- char *dll_major;
+ static char dummy[] = "\0\0\0\0\0\0\0";
+ char *dll_major = dummy;
bufend = buf + size;
while (buf < bufend)
if ((buf = (char *) memchr (buf, '%', bufend - buf)) == NULL)
@@ -1051,13 +1052,13 @@ dump_sysinfo ()
}
printf ("\n");
- unsigned int ml_fsname = 4, ml_dir = 7, ml_type = 6;
+ unsigned ml_fsname = 4, ml_dir = 7, ml_type = 6;
struct mntent *mnt;
setmntent (0, 0);
while ((mnt = getmntent (0)))
{
- int n = (int) strlen (mnt->mnt_fsname);
+ unsigned n = (int) strlen (mnt->mnt_fsname);
if (ml_fsname < n)
ml_fsname = n;
n = (int) strlen (mnt->mnt_dir);