aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2014-04-18 19:52:52 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commitabdad952689c21d28683feff31b1fc6b6e2b1ce7 (patch)
tree1e9034ca6d36aa3a8e85e02b89f0f6e88c2fd216
parenta4ba0dcf2741c4096159a55012d1e5f981ce244c (diff)
remove unnecessary void* returns that clang caught
svn path=/trunk/externals/unauthorized/; revision=17300
-rw-r--r--countund.c7
-rw-r--r--randomblock~.c3
2 files changed, 3 insertions, 7 deletions
diff --git a/countund.c b/countund.c
index 07d5565..fb0495b 100644
--- a/countund.c
+++ b/countund.c
@@ -75,12 +75,11 @@ static void *countund_new(t_float flimit)
return(x);
}
-static void *countund_limit(t_countund* x, t_float flimit)
+static void countund_limit(t_countund* x, t_float flimit)
{
if ( flimit < 0 )
{
post( "countund~: wrong count limit" );
- return;
}
else
{
@@ -88,9 +87,8 @@ static void *countund_limit(t_countund* x, t_float flimit)
}
}
-static void *countund_bang(t_countund *x)
+static void countund_bang(t_countund *x)
{
-
if ( x->x_up )
{
x->x_value+=1;
@@ -110,7 +108,6 @@ static void *countund_bang(t_countund *x)
}
}
outlet_float( x->x_obj.ob_outlet, x->x_value );
- return;
}
void countund_setup(void)
diff --git a/randomblock~.c b/randomblock~.c
index ad41034..f75e16b 100644
--- a/randomblock~.c
+++ b/randomblock~.c
@@ -71,12 +71,11 @@ static void *randomblock_new(t_float flimit)
return(x);
}
-static void *randomblock_limit(t_randomblock* x, t_float flimit)
+static void randomblock_limit(t_randomblock* x, t_float flimit)
{
if ( flimit < 0 || flimit > RAND_MAX )
{
post( "randomblock~: wrong random limit" );
- return;
}
else
{