mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-31 16:57:46 +00:00
[all] use explicit void parameter lists
This makes it a compile-time error to call a function that semantically takes no parameters with a nonzero number of arguments. Previously, such code would still compile, but risk blowing up the stack if a compiler chose to use something other than caller-cleanup calling conventions.
This commit is contained in:
parent
dc17492750
commit
a46a3a2668
28 changed files with 111 additions and 111 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "kvmfr.h"
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
int fd = open("/dev/kvmfr0", O_RDWR);
|
||||
if (fd < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue