Mark array parameters to iir_coeff_new() as const

This commit is contained in:
Laurence Withers 2014-07-07 09:46:23 +00:00
parent 628e1d55a2
commit a57e239d10
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ struct iir_coeff_t {
* Allocates a new set of coefficient objects.
*/
struct iir_coeff_t*
iir_coeff_new(int nc, double* c, int nd, double* d)
iir_coeff_new(int nc, const double* c, int nd, const double* d)
{
struct iir_coeff_t* coeff;

View File

@ -46,7 +46,8 @@ instances through \ref iir_filter().
See \ref iir_structure for a full explanation of the parameters.
*/
struct iir_coeff_t* iir_coeff_new(int nc, double* c, int nd, double* d)
struct iir_coeff_t* iir_coeff_new(int nc, const double* c, int nd,
const double* d)
#ifndef DOXYGEN
__attribute__((malloc,nonnull))
#endif