diff options
author | Diego Pettenò <flameeyes@gmail.com> | 2008-01-04 07:47:32 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-01-04 07:47:32 +0000 |
commit | 10ff3ff43b4c23410218497af3f1d7f8c8bb60e0 (patch) | |
tree | 8806f505e3f1c56b67f89918c32125a559f69967 | |
parent | 7564658bbc6a59173906ed281743225366389f70 (diff) | |
download | ffmpeg-10ff3ff43b4c23410218497af3f1d7f8c8bb60e0.tar.gz |
Make pp_help a constant pointer to constant characters, moves it partially
in .rodata (the actual string) and partially in .data.relro (the pointer),
but doesn't change ABI.
Patch by Diego 'Flameeyes' Pettenò flameeyes at gmail com
Originally committed as revision 11390 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libpostproc/postprocess.c | 2 | ||||
-rw-r--r-- | libpostproc/postprocess.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index e52574c397..9f5ab1fcbb 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -697,7 +697,7 @@ static inline void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int /* -pp Command line Help */ -char *pp_help= +const char *const pp_help= "Available postprocessing filters:\n" "Filters Options\n" "short long name short long option Description\n" diff --git a/libpostproc/postprocess.h b/libpostproc/postprocess.h index e3ac29e2e4..52211c5739 100644 --- a/libpostproc/postprocess.h +++ b/libpostproc/postprocess.h @@ -42,7 +42,7 @@ typedef void pp_context_t; typedef void pp_mode_t; -extern char *pp_help; ///< a simple help text +extern const char *const pp_help; ///< a simple help text void pp_postprocess(uint8_t * src[3], int srcStride[3], uint8_t * dst[3], int dstStride[3], |