changeset 23433:a36eeb4094cd

Make realloc_struct inline as other functions defined in demuxer.h
author zuxy
date Sat, 02 Jun 2007 16:04:56 +0000
parents c223d8fd4312
children d986b47f1451
files libmpdemux/demuxer.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.h	Sat Jun 02 14:38:45 2007 +0000
+++ b/libmpdemux/demuxer.h	Sat Jun 02 16:04:56 2007 +0000
@@ -275,7 +275,7 @@
 #define SIZE_MAX ((size_t)-1)
 #endif
 
-static void *realloc_struct(void *ptr, size_t nmemb, size_t size) {
+inline static void *realloc_struct(void *ptr, size_t nmemb, size_t size) {
   if (nmemb > SIZE_MAX / size) {
     free(ptr);
     return NULL;