Copyright cleanup and fix compiler warnings.
authorjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 27 Oct 2008 15:50:35 +0000 (15:50 +0000)
committerjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 27 Oct 2008 15:50:35 +0000 (15:50 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9875 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/general/gr_squash_ff.cc
gnuradio-core/src/lib/general/gr_squash_ff.h
gnuradio-core/src/lib/general/gr_stretch_ff.cc
gnuradio-core/src/lib/general/gr_stretch_ff.h

index 977376bc5f66639c07a02d7563fcb7b4c978b68b..05ad4a7eb6efaae8fe3736c4ba8ad7baa5019808 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -49,9 +49,9 @@ gr_squash_ff::gr_squash_ff(const std::vector<float> &igrid,
   d_igrid = (double *) malloc(d_inum * sizeof(double));
   d_iwork = (double *) malloc(d_inum * sizeof(double));
   d_ogrid = (double *) malloc(d_onum * sizeof(double));
-  for (int i = 0; i < d_inum; i++)
+  for (unsigned int i = 0; i < d_inum; i++)
     d_igrid[i] = igrid[i];
-  for (int i = 0; i < d_onum; i++)
+  for (unsigned int i = 0; i < d_onum; i++)
     d_ogrid[i] = ogrid[i];
 
   d_accel = gsl_interp_accel_alloc();
@@ -77,12 +77,12 @@ gr_squash_ff::work(int noutput_items,
 
   for (int count = 0; count < noutput_items; count++) {
 
-    for (int i = 0; i < d_inum; i++)
+    for (unsigned int i = 0; i < d_inum; i++)
       d_iwork[i] = in[i];
 
     gsl_spline_init(d_spline, d_igrid, d_iwork, d_inum);
     
-    for (int i = 0; i < d_onum; i++)
+    for (unsigned int i = 0; i < d_onum; i++)
       out[i] = gsl_spline_eval(d_spline, d_ogrid[i], d_accel);
 
     in  += d_inum;
index 43880857e06ea7eac428d566e9140b15e3d5f602..ee3426caeb478e7e7d20d99a3e97fbca23b5c859 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
index 0913d5277b364a74f91fd9836e92696820c52e31..f1822dcb8bc907686a640d128bec9483d1d45b43 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -52,17 +52,17 @@ gr_stretch_ff::work(int noutput_items,
   for (int count = 0; count < noutput_items; count++) {
     float vmax = in[0] - d_lo;
 
-    for (int i = 1; i < d_vlen; i++) {
+    for (unsigned int i = 1; i < d_vlen; i++) {
       float vtmp = in[i] - d_lo;
       if (vtmp > vmax)
        vmax = vtmp;
     }
     
     if (vmax != 0.0)
-      for (int i = 0; i < d_vlen; i++)
+      for (unsigned int i = 0; i < d_vlen; i++)
        out[i] = d_lo * (1.0 - (in[i] - d_lo) / vmax);
     else
-      for (int i = 0; i < d_vlen; i++)
+      for (unsigned int i = 0; i < d_vlen; i++)
        out[i] = in[i];
 
     in  += d_vlen;
index d2164f8f4669fa3378942486363855145e67867f..be828f583113c5fdc9f17396ff11d8d555c44268 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  *