Skip to content

Commit

Permalink
[libngf] Do not use C++ style function prototypes. Fixes JB#32195
Browse files Browse the repository at this point in the history
Incorrect function prototypes in libngfd causes compilation warnings
when strict error checking is used.

Declare functions that take no parameters as
  int foo(void);
instead of
  int foo();

The latter is valid in C++, but in C compilation it is "old style"
prototype meaning the number/type of parameters is not specified.
  • Loading branch information
spiiroin committed Sep 10, 2015
1 parent 4012605 commit 6ec8547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libngf/proplist.h
Expand Up @@ -49,7 +49,7 @@ typedef void (*NgfProplistExtendedCallback) (const char *key, const void *val
* @return NgfProplist or NULL if no memory.
*/

NgfProplist* ngf_proplist_new ();
NgfProplist* ngf_proplist_new (void);

/**
* Create an identical copy of other proplist.
Expand Down

0 comments on commit 6ec8547

Please sign in to comment.