[jbossnative-commits] JBoss Native SVN: r1009 - trunk/sight/native/os/linux.

jbossnative-commits at lists.jboss.org jbossnative-commits at lists.jboss.org
Mon Sep 10 04:13:56 EDT 2007


Author: mladen.turk at jboss.com
Date: 2007-09-10 04:13:56 -0400 (Mon, 10 Sep 2007)
New Revision: 1009

Modified:
   trunk/sight/native/os/linux/common.c
Log:
Fix few typos

Modified: trunk/sight/native/os/linux/common.c
===================================================================
--- trunk/sight/native/os/linux/common.c	2007-09-10 08:08:55 UTC (rev 1008)
+++ trunk/sight/native/os/linux/common.c	2007-09-10 08:13:56 UTC (rev 1009)
@@ -42,7 +42,7 @@
     struct dirent *pent, pbuf;
     int rv = ENOENT;
 
-    if (!(pd = opendir(PROC_FS_BASE))
+    if (!(pd = opendir(PROC_FS_BASE)))
         return errno;
 
     while (!readdir_r(pd, &pbuf, &pent)) {
@@ -50,7 +50,7 @@
         struct dirent *fent, fbuf;
         char pname[64];
 
-        if (!ent)
+        if (!pent)
             break;
         if (!apr_isdigit(*pent->d_name)) {
             /* Skip non pid directories */
@@ -66,7 +66,7 @@
                 continue;
         }
         strcat(pname, "/fd");
-        if (!(fd = opendir(pname))
+        if (!(fd = opendir(pname)))
             continue;
         while (!readdir_r(fd, &fbuf, &fent)) {
             char fname[64];
@@ -77,7 +77,7 @@
 
             strcpy(fname, pname);
             strcat(fname, "/");
-            strcat(fname, fent->dname);
+            strcat(fname, fent->d_name);
 
             if (stat(fname, sb) < 0)
                 continue;




More information about the jbossnative-commits mailing list