History

avcodec/tiff: Don't cast const away via bsearch

Andreas Rheinhardt committed 2 years ago

Commit abcb4b41 parent a5fcd971 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/tiff.c+1−1
@@ -176,7 +176,7 @@ static int cmp_id_key(const void *id, const void *k) · 175 unmodified lines
176 176
177static const char *search_keyval(const TiffGeoTagKeyName *keys, int n, int id)177static const char *search_keyval(const TiffGeoTagKeyName *keys, int n, int id)
178{178{
179 TiffGeoTagKeyName *r = bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key);179 const TiffGeoTagKeyName *r = bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key);
180 if(r)180 if(r)
181 return r->name;181 return r->name;
182 182

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t