Skip to content

Commit

Permalink
* Added idempotent preserving ifdefs for rumble.h, changed some
Browse files Browse the repository at this point in the history
  functions that took () to take (void) insteadh.
  • Loading branch information
smcameron committed Apr 10, 2009
1 parent 6984d58 commit 678d2b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rumble.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static struct ff_effect effects[N_EFFECTS];

#endif /* HAS_LINUX_JOYSTICK_INTERFACE */

int stop_all_rumble_effects()
int stop_all_rumble_effects(void)
{
#ifdef HAS_LINUX_JOYSTICK_INTERFACE
int i;
Expand Down Expand Up @@ -112,7 +112,7 @@ int play_rumble_effect(int effect)
return 0;
}

void close_rumble_fd()
void close_rumble_fd(void)
{
#ifdef HAS_LINUX_JOYSTICK_INTERFACE
close(event_fd);
Expand Down
7 changes: 5 additions & 2 deletions rumble.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef __RUMBLE_H__
#define __RUMBLE_H__

/*
* Copyright 2008 Stephen M. Cameron <[email protected]>
Expand Down Expand Up @@ -29,8 +31,9 @@
#define RUMBLE_STRONG_RUMBLE_EFFECT 4
#define RUMBLE_WEAK_RUMBLE_EFFECT 5

extern int stop_all_rumble_effects();
extern int stop_all_rumble_effects(void);
extern int play_rumble_effect(int effect);
extern void close_rumble_fd();
extern void close_rumble_fd(void);
extern int get_ready_to_rumble(char *filename);

#endif

0 comments on commit 678d2b7

Please sign in to comment.