diff options
author | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-02 16:04:56 +0000 |
---|---|---|
committer | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-02 16:04:56 +0000 |
commit | 991ff1be271453f937f0678f62f9b26f429ff531 (patch) | |
tree | a8e72b3f5b11a505d277d57455f8b80364986ff9 | |
parent | 4767b92545322a32f7d52914b872373588949608 (diff) |
Make realloc_struct inline as other functions defined in demuxer.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23451 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demuxer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h index 6c9eb2b57d..8efd54e826 100644 --- a/libmpdemux/demuxer.h +++ b/libmpdemux/demuxer.h @@ -275,7 +275,7 @@ inline static void free_demux_packet(demux_packet_t* dp){ #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; |