diff options
author | Martin Storsjö <martin@martin.st> | 2011-06-17 10:08:23 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-06-30 12:04:46 +0300 |
commit | 5d62d0b114807cc143079a8a0430b86d585ab606 (patch) | |
tree | 2fd54237e8646da3428561b1004868315e9646cc /libavformat/udp.c | |
parent | 705b21a06ed357ed2b432b967c4fcb09fb992d02 (diff) | |
download | ffmpeg-5d62d0b114807cc143079a8a0430b86d585ab606.tar.gz |
udp: Fix a compilation warning
This fixes this compilation warning, by making endptr a non-const
pointer, as required by strtol:
In function ‘udp_open’:
warning: passing argument 2 of ‘strtol’ from incompatible pointer type
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 724ff0197d..bd95a811de 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -328,7 +328,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) p = strchr(uri, '?'); if (p) { if (av_find_info_tag(buf, sizeof(buf), "reuse", p)) { - const char *endptr=NULL; + char *endptr = NULL; s->reuse_socket = strtol(buf, &endptr, 10); /* assume if no digits were found it is a request to enable it */ if (buf == endptr) |