changeset 66:7737e39e74f3 libpostproc

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
author benoit
date Fri, 04 Jan 2008 07:47:32 +0000
parents 5bef666de27d
children fb2657d1e70d
files postprocess.c postprocess.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/postprocess.c	Thu Jan 03 08:42:02 2008 +0000
+++ b/postprocess.c	Fri Jan 04 07:47:32 2008 +0000
@@ -697,7 +697,7 @@
 
 /* -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"
--- a/postprocess.h	Thu Jan 03 08:42:02 2008 +0000
+++ b/postprocess.h	Fri Jan 04 07:47:32 2008 +0000
@@ -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],