aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fec
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-10-07 04:52:50 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-10-07 04:52:50 +0200
commit0aa6201a490bfabc0ae021ceb9f1fb0f46727c5d (patch)
treea71d934d8151dd43e7c16555fef17fd749c5da70 /lib/fec
parent558d74bffd9f069955af52c0b308a1d6169bcff0 (diff)
parent0330221d51421caa110b8c5dcb567cc3d0620eb9 (diff)
downloaddabmod-0aa6201a490bfabc0ae021ceb9f1fb0f46727c5d.tar.gz
dabmod-0aa6201a490bfabc0ae021ceb9f1fb0f46727c5d.tar.bz2
dabmod-0aa6201a490bfabc0ae021ceb9f1fb0f46727c5d.zip
Merge lime output into next branch
Diffstat (limited to 'lib/fec')
-rw-r--r--lib/fec/decode_rs.h12
-rw-r--r--lib/fec/init_rs.h2
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/fec/decode_rs.h b/lib/fec/decode_rs.h
index 647b885..c165cf3 100644
--- a/lib/fec/decode_rs.h
+++ b/lib/fec/decode_rs.h
@@ -145,15 +145,15 @@
count++;
}
if (count != no_eras) {
- fprintf(stderr, "count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras);
+ printf("count = %d no_eras = %d\n lambda(x) is WRONG\n",count,no_eras);
count = -1;
goto finish;
}
#if DEBUG >= 2
- fprintf(stderr, "\n Erasure positions as determined by roots of Eras Loc Poly:\n");
+ printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n");
for (i = 0; i < count; i++)
- fprintf(stderr, "%d ", loc[i]);
- fprintf(stderr, "\n");
+ printf("%d ", loc[i]);
+ printf("\n");
#endif
#endif
}
@@ -227,7 +227,7 @@
continue; /* Not a root */
/* store root (index-form) and error location number */
#if DEBUG>=2
- fprintf(stderr, "count %d root %d loc %d\n",count,i,k);
+ printf("count %d root %d loc %d\n",count,i,k);
#endif
root[count] = i;
loc[count] = k;
@@ -279,7 +279,7 @@
}
#if DEBUG >= 1
if (den == 0) {
- fprintf(stderr, "\n ERROR: denominator = 0\n");
+ printf("\n ERROR: denominator = 0\n");
count = -1;
goto finish;
}
diff --git a/lib/fec/init_rs.h b/lib/fec/init_rs.h
index a5e8b4a..2b2ae98 100644
--- a/lib/fec/init_rs.h
+++ b/lib/fec/init_rs.h
@@ -2,6 +2,8 @@
* Copyright 2004 Phil Karn, KA9Q
* May be used under the terms of the GNU Lesser General Public License (LGPL)
*/
+#undef NULL
+#define NULL ((void *)0)
{
int i, j, sr,root,iprim;