summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-18 23:18:11 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:22:08 +0200
commit0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch)
treef8778cca656943ee36193b49a7727557ba82319b /proc
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
Modernize code by removing use of old style definitions.
Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
Diffstat (limited to 'proc')
-rw-r--r--proc/mgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index 1170e361..25844dbf 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -1219,7 +1219,7 @@ add_tasks (task_t task)
/* Allocate a new unused PID.
(Unused means it is neither the pid nor pgrp of any relevant data.) */
int
-genpid ()
+genpid (void)
{
#define WRAP_AROUND 30000
#define START_OVER 100