summaryrefslogtreecommitdiff
path: root/graphics/ivtools
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-12-21 02:58:55 +0000
committerdholland <dholland@pkgsrc.org>2012-12-21 02:58:55 +0000
commitff03a12ca9ab665524a10ce25210c8eecd299033 (patch)
treed7cbac265d3a5d2365de119bdda555eeb2d30078 /graphics/ivtools
parent9b2bfa66398f2c99eb4589cda5cfc5254e1fe8cd (diff)
downloadpkgsrc-ff03a12ca9ab665524a10ce25210c8eecd299033.tar.gz
Silence extensive const warnings that were obscuring everything else.
Diffstat (limited to 'graphics/ivtools')
-rw-r--r--graphics/ivtools/patches/patch-src_Attribute_attrvalue.h18
-rw-r--r--graphics/ivtools/patches/patch-src_ComUtil_comutil.arg17
-rw-r--r--graphics/ivtools/patches/patch-src_ComUtil_symbols.c24
3 files changed, 59 insertions, 0 deletions
diff --git a/graphics/ivtools/patches/patch-src_Attribute_attrvalue.h b/graphics/ivtools/patches/patch-src_Attribute_attrvalue.h
new file mode 100644
index 00000000000..aed1e75be5a
--- /dev/null
+++ b/graphics/ivtools/patches/patch-src_Attribute_attrvalue.h
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_Attribute_attrvalue.h,v 1.1 2012/12/21 02:58:55 dholland Exp $
+
+Silence extensive const warnings.
+
+--- src/Attribute/attrvalue.h~ 2009-08-11 19:39:25.000000000 +0000
++++ src/Attribute/attrvalue.h
+@@ -39,9 +39,9 @@ class LeakChecker;
+ #include <Unidraw/Components/compview.h>
+
+ extern "C" {
+- int symbol_add(char*);
++ int symbol_add(const char*);
+ int symbol_del(int);
+- int symbol_find(char*);
++ int symbol_find(const char*);
+ char* symbol_pntr(int);
+ }
+
diff --git a/graphics/ivtools/patches/patch-src_ComUtil_comutil.arg b/graphics/ivtools/patches/patch-src_ComUtil_comutil.arg
new file mode 100644
index 00000000000..b962558c999
--- /dev/null
+++ b/graphics/ivtools/patches/patch-src_ComUtil_comutil.arg
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_ComUtil_comutil.arg,v 1.1 2012/12/21 02:58:55 dholland Exp $
+
+Silence extensive const warnings.
+
+--- src/ComUtil/comutil.arg~ 2004-02-11 00:28:08.000000000 +0000
++++ src/ComUtil/comutil.arg
+@@ -6,8 +6,8 @@ int mblock_resize(int id,unsigned nel);
+ void *mblock_pntr(int id);
+ int mblock_sizes(int id,unsigned *nel,unsigned *size,unsigned long *nbytes);
+ /* SYMBOLS.C */
+-int symbol_add(char *string);
+-int symbol_find(char *string);
++int symbol_add(const char *string);
++int symbol_find(const char *string);
+ int symbol_del (int id);
+ int symbol_len (int id);
+ char *symbol_pntr(int id);
diff --git a/graphics/ivtools/patches/patch-src_ComUtil_symbols.c b/graphics/ivtools/patches/patch-src_ComUtil_symbols.c
new file mode 100644
index 00000000000..4b527753c04
--- /dev/null
+++ b/graphics/ivtools/patches/patch-src_ComUtil_symbols.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_ComUtil_symbols.c,v 1.1 2012/12/21 02:58:55 dholland Exp $
+
+Silence extensive const warnings.
+
+--- src/ComUtil/symbols.c~ 2008-05-07 16:17:26.000000000 +0000
++++ src/ComUtil/symbols.c
+@@ -86,7 +86,7 @@ Summary:
+ #include <ComUtil/comutil.h>
+ */
+
+-int symbol_add (char * string)
++int symbol_add (const char * string)
+
+ /*!
+ Return Value: >= 0 unique identifier for this symbol,
+@@ -336,7 +336,7 @@ Summary:
+ #include <ComUtil/comutil.h>
+ */
+
+-int symbol_find (char * string)
++int symbol_find (const char * string)
+
+ /*!
+ Return Value: >=0 unique identifier for symbol if symbol found,