player: fixup some constness

This commit is contained in:
Erik Faye-Lund 2010-09-15 23:10:15 +02:00
parent c570d58962
commit 1044584639
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,8 @@ struct sync_data {
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;
for (i = 0; i < (int)data->num_tracks; ++i)

View File

@ -104,7 +104,7 @@ void sync_destroy_device(struct sync_device *d)
#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;
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;
uint32_t name_len = htonl(strlen(t->name));