summaryrefslogtreecommitdiff
path: root/dm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-07-14 15:11:08 -0700
committerAlan Coopersmith <alanc@alf.(none)>2006-07-14 15:11:08 -0700
commit2094955be1ef94a0ba3f7dcf64ae04c9575dbd9c (patch)
treedfb7668beea258fefe12f06264d58eec2a0290a3 /dm.c
parent1abe7027403ecf00b846c675fac27c2d86ebd9d4 (diff)
Use pid_t instead of int when working with fork/wait/etc. (clear more lint warnings)
Diffstat (limited to 'dm.c')
-rw-r--r--dm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dm.c b/dm.c
index 9a58cda..80a295a 100644
--- a/dm.c
+++ b/dm.c
@@ -88,7 +88,7 @@ static void ScanServers (void);
static void SetAccessFileTime (void);
static void SetConfigFileTime (void);
static void StartDisplays (void);
-static void TerminateProcess (int pid, int signal);
+static void TerminateProcess (pid_t pid, int signal);
volatile int Rescan;
static long ServersModTime, ConfigModTime, AccessFileModTime;
@@ -106,7 +106,7 @@ static SIGVAL ChildNotify (int n);
static int StorePid (void);
-static int parent_pid = -1; /* PID of parent xdm process */
+static pid_t parent_pid = -1; /* PID of parent xdm process */
int
main (int argc, char **argv)
@@ -422,7 +422,7 @@ ChildNotify (int n)
void
WaitForChild (void)
{
- int pid;
+ pid_t pid;
struct display *d;
waitType status;
#if !defined(X_NOT_POSIX) && !defined(__UNIXOS2__)
@@ -625,7 +625,7 @@ StartDisplays (void)
void
StartDisplay (struct display *d)
{
- int pid;
+ pid_t pid;
Debug ("StartDisplay %s\n", d->name);
LoadServerResources (d);
@@ -695,7 +695,7 @@ StartDisplay (struct display *d)
}
static void
-TerminateProcess (int pid, int signal)
+TerminateProcess (pid_t pid, int signal)
{
kill (pid, signal);
#ifdef SIGCONT