summaryrefslogtreecommitdiff
path: root/misc-utils/procs.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:43 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:43 +0100
commit22853e4a82c6ef7b336527529acb94b14a0b0fd8 (patch)
treeee28e4598c8c449d7e811711d8ce8eb17caecfb6 /misc-utils/procs.c
parenteb63b9b8f4cecb34c2478282567862bc48ef256d (diff)
downloadutil-linux-old-22853e4a82c6ef7b336527529acb94b14a0b0fd8.tar.gz
Imported from util-linux-2.10m tarball.
Diffstat (limited to 'misc-utils/procs.c')
-rw-r--r--misc-utils/procs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/misc-utils/procs.c b/misc-utils/procs.c
index fd0e5add..715d9fb0 100644
--- a/misc-utils/procs.c
+++ b/misc-utils/procs.c
@@ -14,20 +14,21 @@
#define _POSIX_SOURCE 1
-#include <sys/types.h>
-#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <ctype.h>
#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include "kill.h"
extern char *mybasename (char *);
static char *parse_parens (char *buf);
-int *get_pids (char *process_name, int get_all)
-{
+int *
+get_pids (char *process_name, int get_all) {
DIR *dir;
struct dirent *ent;
int status;