aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2012-02-24 10:38:20 +0000
committerYaakov Selkowitz <yselkowi@redhat.com>2012-02-24 10:38:20 +0000
commit769e28572c4b2aedc4e017fc94dab40c505a2137 (patch)
tree9ea3222ee6d8e1c61da1c912420d13cadc3a1a22
parent10c8aafdb817fd9b3211362aeb7fb96f55657c38 (diff)
downloadnewlib-769e28572c4b2aedc4e017fc94dab40c505a2137.zip
newlib-769e28572c4b2aedc4e017fc94dab40c505a2137.tar.gz
newlib-769e28572c4b2aedc4e017fc94dab40c505a2137.tar.bz2
* pldd.c: Fix formatting.
-rw-r--r--winsup/utils/pldd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/utils/pldd.c b/winsup/utils/pldd.c
index c90a350..8a6179f 100644
--- a/winsup/utils/pldd.c
+++ b/winsup/utils/pldd.c
@@ -34,10 +34,10 @@ static void
print_help (void)
{
printf ("Usage: pldd [OPTION...] PID\n\n"
- "List dynamic shared objects loaded into a process.\n\n"
- " -?, --help Give this help list\n"
- " --usage Give a short usage message\n"
- " -V, --version Print program version\n");
+ "List dynamic shared objects loaded into a process.\n\n"
+ " -?, --help Give this help list\n"
+ " --usage Give a short usage message\n"
+ " -V, --version Print program version\n");
exit (EXIT_SUCCESS);
}
@@ -94,7 +94,7 @@ main (int argc, char *argv[])
print_version ();
break;
case 0:
- if (strcmp( "usage", longopts[optind].name ) == 0)
+ if (strcmp ("usage", longopts[optind].name) == 0)
print_usage ();
break;
default:
@@ -112,7 +112,7 @@ main (int argc, char *argv[])
error (1, 0, "invalid process ID '%s'", argv[0]);
pidfile = (char *) malloc (32);
- sprintf(pidfile, "/proc/%d/winpid", pid);
+ sprintf (pidfile, "/proc/%d/winpid", pid);
fd = fopen (pidfile, "rb");
if (!fd)
error (1, ENOENT, "cannot open /proc/%d", pid);
@@ -120,7 +120,7 @@ main (int argc, char *argv[])
exefile = (char *) malloc (32);
exename = (char *) malloc (MAX_PATH);
- sprintf(exefile, "/proc/%d/exename", pid);
+ sprintf (exefile, "/proc/%d/exename", pid);
fd = fopen (exefile, "rb");
fscanf (fd, "%s", exename);
@@ -130,9 +130,9 @@ main (int argc, char *argv[])
printf ("%d:\t%s\n", pid, exename);
- EnumProcessModules (hProcess, hModules, sizeof(hModules), &cbModules);
+ EnumProcessModules (hProcess, hModules, sizeof (hModules), &cbModules);
/* start at 1 to skip the executable itself */
- for (i = 1; i < (cbModules / sizeof(HMODULE)); i++)
+ for (i = 1; i < (cbModules / sizeof (HMODULE)); i++)
{
TCHAR winname[MAX_PATH];
char posixname[MAX_PATH];