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>2008-09-13 02:43:10 +0400
committerChristopher Faylor <me@cgf.cx>2008-09-13 02:43:10 +0400
commita35d9f1a676f430e1dbbb555f327cd7a40df37f7 (patch)
treebb400cd789df6f8d154be4fca3e1aab9e59e3549 /winsup/utils/dump_setup.cc
parent175742d8c818ff31b06174494a77b30e5008eb83 (diff)
* cygcheck.cc (pathlike::check_existence): Remove class name from declaration.
(display_internet_error): Use proper format specifier for DWORD. (environ): Remove unneeded declaration. (main): Use brace around nested if to avoid an overly-helpful compiler warning. * dump_setup.cc (parse_filename): Reorganize nested if to avoid an overly-helpful compiler warning. * path.cc (GUID_shortcut): Use braces around part of initializer which needs them. (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a compiler warning. (struct opt): Make static. * ps.cc (main): Reorganize nested if to avoid an overly-helpful compiler warning. * regtool.cc: Make some anonymous structs static to avoid a compiler warning. * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential uninitialized use. * strace.cc (add_child): Use proper format specifier for DWORD. (remove_child): Ditto. (proc_child): Ditto.
Diffstat (limited to 'winsup/utils/dump_setup.cc')
-rw-r--r--winsup/utils/dump_setup.cc37
1 files changed, 19 insertions, 18 deletions
diff --git a/winsup/utils/dump_setup.cc b/winsup/utils/dump_setup.cc
index 3e71f1a02..e3dacde6c 100644
--- a/winsup/utils/dump_setup.cc
+++ b/winsup/utils/dump_setup.cc
@@ -91,24 +91,25 @@ parse_filename (const char *in_fn, fileparse& f)
f.pkg[0] = f.what[0] = '\0';
p = base (fn);
for (ver = p; *ver; ver++)
- if (*ver == '-')
- if (isdigit (ver[1]))
- {
- *ver++ = '\0';
- strcpy (f.pkg, p);
- break;
- }
- else if (strcasecmp (ver, "-src") == 0 ||
- strcasecmp (ver, "-patch") == 0)
- {
- *ver++ = '\0';
- strcpy (f.pkg, p);
- strcpy (f.what, strlwr (ver));
- strcpy (f.pkgtar, p);
- strcat (f.pkgtar, f.tail);
- ver = strchr (ver, '\0');
- break;
- }
+ if (*ver != '-')
+ continue;
+ else if (isdigit (ver[1]))
+ {
+ *ver++ = '\0';
+ strcpy (f.pkg, p);
+ break;
+ }
+ else if (strcasecmp (ver, "-src") == 0 ||
+ strcasecmp (ver, "-patch") == 0)
+ {
+ *ver++ = '\0';
+ strcpy (f.pkg, p);
+ strcpy (f.what, strlwr (ver));
+ strcpy (f.pkgtar, p);
+ strcat (f.pkgtar, f.tail);
+ ver = strchr (ver, '\0');
+ break;
+ }
if (!f.pkg[0])
strcpy (f.pkg, p);