[hackers][surf][quit hotkey] Suggestion to remove quit() function parameters

From: Lancia Greggori <lanciagreggori_AT_gmail.com>
Date: Tue, 30 Aug 2022 20:29:40 +0430

Hi, I have recently noticed that the quit() function in the patch
https://surf.suckless.org/patches/quit-hotkey/ has parameters that are not
being used:

+quit(Client *c, const Arg *a)
+ cleanup();
+ exit(0);

To further test my theory, I changed the above quit function to quit(void)
and surf compiled and ran without a problem.

Wouldn't it be better to remove these parameters that are not being used
and instead just put void in their place?
Received on Tue Aug 30 2022 - 17:59:40 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 30 2022 - 18:12:38 CEST