]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mail: Use a C89 function pointer type for command functions.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 18 Apr 2023 18:27:29 +0000 (11:27 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 18 Apr 2023 18:27:29 +0000 (11:27 -0700)
commitd28a95513e4fc1bb11dedba7ea7a8eabf79fbfe4
tree944a8284638af3d6b3773b9077f1cb260ffeedbd
parentc330a185b7a781e3fc805992a618fcf4764825ec
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
usr.bin/mail/cmd1.c
usr.bin/mail/cmd2.c
usr.bin/mail/cmd3.c
usr.bin/mail/collect.c
usr.bin/mail/def.h
usr.bin/mail/edit.c
usr.bin/mail/extern.h
usr.bin/mail/lex.c
usr.bin/mail/quit.c
usr.bin/mail/send.c
usr.bin/mail/util.c