Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9fa0111d in mainline


Ignore:
Timestamp:
2012-07-05T22:54:18Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
2afae0e
Parents:
7ed5153b
Message:

Add const qualifiers.

Location:
uspace/app/dplay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/dplay/wave.c

    r7ed5153b r9fa0111d  
    3939#include "wave.h"
    4040
    41 int wav_parse_header(void *file, void ** data, size_t *data_size,
     41int wav_parse_header(void *file, const void **data, size_t *data_size,
    4242    unsigned *sampling_rate, unsigned *sample_size, unsigned *channels,
    4343    bool *sign, const char **error)
     
    4949        }
    5050
    51         wave_header_t *header = file;
     51        const wave_header_t *header = file;
    5252        if (str_lcmp(header->chunk_id, CHUNK_ID, 4) != 0) {
    5353                if (error)
  • uspace/app/dplay/wave.h

    r7ed5153b r9fa0111d  
    8989} wave_header_t;
    9090
    91 int wav_parse_header(void *, void**, size_t *, unsigned *, unsigned *,
     91int wav_parse_header(void *, const void**, size_t *, unsigned *, unsigned *,
    9292    unsigned *, bool *, const char **error_str);
    9393
Note: See TracChangeset for help on using the changeset viewer.