mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 16:28:50 -05:00
Add void to functions with empty parameter list
Adding void [eg foo(void) instead of foo()] makes the code more compliant with ANSI C. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
dde2f3eefa
commit
14606c301c
@ -36,7 +36,7 @@
|
|||||||
#include "sync.h"
|
#include "sync.h"
|
||||||
#include "downloadprog.h"
|
#include "downloadprog.h"
|
||||||
|
|
||||||
config_t *config_new()
|
config_t *config_new(void)
|
||||||
{
|
{
|
||||||
config_t *config;
|
config_t *config;
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ static void usage(int op, char *myname)
|
|||||||
/**
|
/**
|
||||||
* @brief Output pacman version and copyright.
|
* @brief Output pacman version and copyright.
|
||||||
*/
|
*/
|
||||||
static void version()
|
static void version(void)
|
||||||
{
|
{
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf(" .--. Pacman v%s - libalpm v%s\n", PACKAGE_VERSION, LIB_VERSION);
|
printf(" .--. Pacman v%s - libalpm v%s\n", PACKAGE_VERSION, LIB_VERSION);
|
||||||
@ -196,7 +196,7 @@ static void version()
|
|||||||
* Safe to call multiple times.
|
* Safe to call multiple times.
|
||||||
*/
|
*/
|
||||||
/* Inspired by the monotone function localize_monotone. */
|
/* Inspired by the monotone function localize_monotone. */
|
||||||
static void localize()
|
static void localize(void)
|
||||||
{
|
{
|
||||||
static int init = 0;
|
static int init = 0;
|
||||||
if (!init) {
|
if (!init) {
|
||||||
|
Loading…
Reference in New Issue
Block a user