diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-04-18 18:27:29 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-04-18 18:27:29 +0000 |
commit | d28a95513e4fc1bb11dedba7ea7a8eabf79fbfe4 (patch) | |
tree | 944a8284638af3d6b3773b9077f1cb260ffeedbd /usr.bin/mail/cmd2.c | |
parent | c330a185b7a781e3fc805992a618fcf4764825ec (diff) | |
download | src-d28a95513e4fc1bb11dedba7ea7a8eabf79fbfe4.tar.gz src-d28a95513e4fc1bb11dedba7ea7a8eabf79fbfe4.zip |
mail: Use a C89 function pointer type for command functions.
The command function is defined to always take a void *. Functions
which accept a pointer to an array of pointers use a local temporary
'argv' assigned from the void *arg.
Reviewed by: zlei
Differential Revision: https://reviews.freebsd.org/D39527
Diffstat (limited to 'usr.bin/mail/cmd2.c')
-rw-r--r-- | usr.bin/mail/cmd2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mail/cmd2.c b/usr.bin/mail/cmd2.c index 08b7a252b974..2c0f8d55e299 100644 --- a/usr.bin/mail/cmd2.c +++ b/usr.bin/mail/cmd2.c @@ -360,7 +360,7 @@ undeletecmd(void *v) * Interactively dump core on "core" */ int -core(void) +core(void *arg __unused) { int pid; @@ -386,8 +386,9 @@ core(void) * Clobber as many bytes of stack as the user requests. */ int -clobber(char **argv) +clobber(void *arg) { + char **argv = arg; int times; if (argv[0] == 0) |