Mercurial > mplayer.hg
comparison asxparser.c @ 19104:2ec2301183cd
marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org
author | reynaldo |
---|---|
date | Sat, 15 Jul 2006 16:03:12 +0000 |
parents | 75327b24e06f |
children | 64d82a45a05d |
comparison
equal
deleted
inserted
replaced
19103:4611423138fc | 19104:2ec2301183cd |
---|---|
78 } | 78 } |
79 | 79 |
80 /////// Attribs utils | 80 /////// Attribs utils |
81 | 81 |
82 char* | 82 char* |
83 asx_get_attrib(char* attrib,char** attribs) { | 83 asx_get_attrib(const char* attrib,char** attribs) { |
84 char** ptr; | 84 char** ptr; |
85 | 85 |
86 if(attrib == NULL || attribs == NULL) return NULL; | 86 if(attrib == NULL || attribs == NULL) return NULL; |
87 for(ptr = attribs; ptr[0] != NULL; ptr += 2){ | 87 for(ptr = attribs; ptr[0] != NULL; ptr += 2){ |
88 if(strcasecmp(ptr[0],attrib) == 0) | 88 if(strcasecmp(ptr[0],attrib) == 0) |