]> git.itanic.dy.fi Git - rrdd/commitdiff
Rename get_process_count() to get_sibling_count()
authorTimo Kokkonen <kaapeli@ee.oulu.fi>
Wed, 21 May 2008 17:15:41 +0000 (20:15 +0300)
committerTimo Kokkonen <kaapeli@ee.oulu.fi>
Wed, 21 May 2008 17:15:41 +0000 (20:15 +0300)
debug.h
process.c
process.h

diff --git a/debug.h b/debug.h
index 36b3dc234ce07dcc9abdc0e6aa2916818ddf3bc7..b1f550cad730387299fac7de528b053b64c71560 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -13,7 +13,7 @@ extern const char normal_color[];
                char indent[16] = { "               " };                \
                indent[get_parent_count()] = 0;                         \
                fprintf(stderr, "%s%s[%d.%5d] %s:%d %s"                 \
-                       fmt, indent, green_color, get_process_count(),  \
+                       fmt, indent, green_color, get_sibling_count(),  \
                        getpid(),                                       \
                        __FILE__, __LINE__, normal_color, ##arg);       \
        } while (0)
@@ -24,7 +24,7 @@ extern const char normal_color[];
                char indent[16] = { "               " };                \
                indent[get_parent_count()] = 0;                         \
                fprintf(stderr, "%s%s[%d.%5d] %s:%d Error %s"           \
-                       fmt, indent, red_color, get_process_count(),    \
+                       fmt, indent, red_color, get_sibling_count(),    \
                        getpid(),                                       \
                        __FILE__, __LINE__, normal_color, ##arg);       \
        } while (0)
index 507294a1b0217cb4374c6e192fe60f324fcb93e0..ffad3c8958ca8d61276d76b5e7a2e876b77fde1c 100644 (file)
--- a/process.c
+++ b/process.c
@@ -18,7 +18,7 @@ int get_parent_count(void)
        return parent_count;
 }
 
-int get_process_count(void)
+int get_sibling_count(void)
 {
        return process_count;
 }
index d3ec13893b377548d62fa45ed051d13d153bb704..547e42fca37635b2e7a5669cbf041f2f6a4d1896 100644 (file)
--- a/process.h
+++ b/process.h
@@ -11,7 +11,7 @@
 
 int get_child_count(void);
 int get_parent_count(void);
-int get_process_count(void);
+int get_sibling_count(void);   /* Returns the number of older siblings */
 
 int do_fork(void);
 int run(const char *p, char *const argv[]);