From e8ae8b8f912dc5de9abfbb5e1dc8c81340f848be Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 13 Jun 2022 17:51:03 +0000 Subject: [PATCH] - constify git-svn-id: http://moon:8086/svn/software/trunk/libsrc/wav@963 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- wav.c | 2 +- wav.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wav.c b/wav.c index d72493e..812ce9a 100755 --- a/wav.c +++ b/wav.c @@ -44,7 +44,7 @@ uint32_t WavSetFormat(struct _sWAV *pObj, uint32_t nSamplesPerSec, uint16_t nBit } /******************************************************************************/ -uint32_t WavOpen (struct _sWAV *pObj, char* FileName) +uint32_t WavOpen (struct _sWAV *pObj, const char* FileName) { uint32_t stat; diff --git a/wav.h b/wav.h index 646eb93..c1cb58a 100755 --- a/wav.h +++ b/wav.h @@ -52,7 +52,7 @@ extern "C" { void WavInit(struct _sWAV*, uint32_t nSamplesPerSec, uint16_t nBits, uint16_t nChannels, uint16_t format); uint32_t WavSetFormat(struct _sWAV*, uint32_t, uint16_t, uint16_t, uint16_t format); -uint32_t WavOpen (struct _sWAV*, char*); +uint32_t WavOpen (struct _sWAV*, const char*); uint32_t WavCreate(struct _sWAV*, char*, uint32_t); uint32_t WavClose(struct _sWAV*); uint32_t WavRead(struct _sWAV*, void*, uint32_t);