aboutsummaryrefslogtreecommitdiff
path: root/ff/ff.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-25 04:42:16 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:08:21 +0200
commit91b96a1dc7b49d4a803e09b3341ec18ecf6132b3 (patch)
tree64bacb0f352c74ec35da0e4ab105195c64dc033f /ff/ff.c
parentad6b970ca67d8280fe83160335c2b8525f5ddace (diff)
added compiler warnings and fixed most warnings
svn path=/trunk/externals/ff/; revision=1765
Diffstat (limited to 'ff/ff.c')
-rw-r--r--ff/ff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ff/ff.c b/ff/ff.c
index 784b2fe..20cbc4d 100644
--- a/ff/ff.c
+++ b/ff/ff.c
@@ -54,6 +54,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#include <string.h>
+#include <stdio.h>
#include "input.h"
@@ -455,7 +457,7 @@ void ffPeriodic_level(t_ff *x, t_floatarg level)
void ffPeriodic_waveform(t_ff *x, t_symbol* waveform)
{
if (x->ff_fd < 0) return;
- unsigned short shortwave;
+ unsigned short shortwave = 0;
int n = 0;
while (waves[n].wave) {