Mark array parameters to iir_coeff_new() as const
This commit is contained in:
parent
628e1d55a2
commit
a57e239d10
|
@ -22,7 +22,7 @@ struct iir_coeff_t {
|
||||||
* Allocates a new set of coefficient objects.
|
* Allocates a new set of coefficient objects.
|
||||||
*/
|
*/
|
||||||
struct iir_coeff_t*
|
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;
|
struct iir_coeff_t* coeff;
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,8 @@ instances through \ref iir_filter().
|
||||||
See \ref iir_structure for a full explanation of the parameters.
|
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
|
#ifndef DOXYGEN
|
||||||
__attribute__((malloc,nonnull))
|
__attribute__((malloc,nonnull))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue