diff options
author | Ole Anders <git@swoy.org> | 2017-03-28 17:08:01 +0200 |
---|---|---|
committer | Ole Anders <git@swoy.org> | 2017-03-28 17:08:01 +0200 |
commit | 256abc64d5daee6d7526d33455f6f28cc782dee1 (patch) | |
tree | 786ecf32393ce9414f1c6fd4da7509efbc76d7fe /keyboards/satan/keymaps | |
parent | 1b821eca663fb6cbe13ea1753f220bce5a7636a6 (diff) | |
download | qmk_firmware-256abc64d5daee6d7526d33455f6f28cc782dee1.tar.gz qmk_firmware-256abc64d5daee6d7526d33455f6f28cc782dee1.zip |
fixed function to not accept any arguments.
As per Pramod's comment on stack overflow:
In C int foo() and int foo(void) are different functions. int foo()
accepts an arbitrary number of arguments, while int foo(void) accepts 0
arguments. In C++ they mean the same thing. I suggest that you use void
consistently when you mean no arguments.
Diffstat (limited to 'keyboards/satan/keymaps')
-rw-r--r-- | keyboards/satan/keymaps/admiralStrokers/keymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/satan/keymaps/admiralStrokers/keymap.c b/keyboards/satan/keymaps/admiralStrokers/keymap.c index 72a4c3dc9a..7a8459eb56 100644 --- a/keyboards/satan/keymaps/admiralStrokers/keymap.c +++ b/keyboards/satan/keymaps/admiralStrokers/keymap.c @@ -146,7 +146,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { // MACRODOWN only works in this function - bool checkTime(){ + bool checkTime(void){ return (timer_elapsed(key_timer) < 150) ? true : false; } |