player: fixup some constness
This commit is contained in:
parent
c570d58962
commit
1044584639
@ -12,7 +12,8 @@ struct sync_data {
|
|||||||
size_t num_tracks;
|
size_t num_tracks;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline int sync_find_track(struct sync_data *data, const char *name)
|
static inline int sync_find_track(const struct sync_data *data,
|
||||||
|
const char *name)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < (int)data->num_tracks; ++i)
|
for (i = 0; i < (int)data->num_tracks; ++i)
|
||||||
|
|||||||
@ -104,7 +104,7 @@ void sync_destroy_device(struct sync_device *d)
|
|||||||
|
|
||||||
#ifdef SYNC_PLAYER
|
#ifdef SYNC_PLAYER
|
||||||
|
|
||||||
static int get_track_data(struct sync_device *d, struct sync_track *t)
|
static int get_track_data(const struct sync_device *d, struct sync_track *t)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
FILE *fp = fopen(sync_track_path(d->base, t->name), "rb");
|
FILE *fp = fopen(sync_track_path(d->base, t->name), "rb");
|
||||||
@ -157,7 +157,7 @@ void sync_save_tracks(const struct sync_device *d)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_track_data(struct sync_device *d, struct sync_track *t)
|
static int get_track_data(const struct sync_device *d, struct sync_track *t)
|
||||||
{
|
{
|
||||||
unsigned char cmd = GET_TRACK;
|
unsigned char cmd = GET_TRACK;
|
||||||
uint32_t name_len = htonl(strlen(t->name));
|
uint32_t name_len = htonl(strlen(t->name));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user