Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing void #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libtwirc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ twirc_get_callbacks(twirc_state_t *s)
* a NULL pointer if any errors occur during initialization.
*/
twirc_state_t*
twirc_init()
twirc_init(void)
{
// Seed the random number generator
srand(time(NULL));
Expand Down
4 changes: 3 additions & 1 deletion src/libtwirc.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef LIBTWIRC_H
#define LIBTWIRC_H

#include <stdint.h>

// Name & Version
#define TWIRC_NAME "libtwirc"
#define TWIRC_VER_MAJOR 0
Expand Down Expand Up @@ -200,7 +202,7 @@ struct twirc_callbacks
*/

// Initialization
twirc_state_t *twirc_init();
twirc_state_t *twirc_init(void);
twirc_callbacks_t *twirc_get_callbacks(twirc_state_t *s);

// Connecting and disconnecting
Expand Down