Commit 8252f97e authored by Chris's avatar Chris
Browse files

some_func() -> some_func(void)

parent 3abb741d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
#include <time.h> // timespec struct

// get random value from device
FILE *get_urandom() {
FILE *get_urandom(void) {
    FILE *urandom = fopen("/dev/urandom", "rb");
    return urandom;
}
@@ -18,7 +18,7 @@ void sleep_ms(const unsigned int ms) {
    nanosleep(&ts, NULL);
}

void clear_screen() {
void clear_screen(void) {
    #ifdef _WIN32
        system("cls");
    #else
+2 −2
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@
#define UTILS_H
#include <stdio.h>

FILE *get_urandom();
FILE *get_urandom(void);
void sleep_ms(unsigned int ms);
void clear_screen();
void clear_screen(void);

#endif //UTILS_H
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ int main(void) {
	// un-hold all dice
	clear_held_values(&ctx);

	// do_demo_dice_rolls(&ctx, next_roll); // if you want to see a little demo
	// do_demo_dice_rolls(&ctx, next_roll); // uncomment if you want to see a little demo

	fclose(ctx.random_device_fd);
	return 0;