Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
html2text
html2text-debian-810_fix_deprecated_conversion_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File html2text-debian-810_fix_deprecated_conversion_warnings.patch of Package html2text
Substituted 'char*' with 'const char*' in needed places to avoid 'deprecated conversion from string constant to ‘char*’' warnings. Index: html2text-1.3.2a/sgml.C =================================================================== --- html2text-1.3.2a.orig/sgml.C 2008-09-20 14:06:15.259781132 +0300 +++ html2text-1.3.2a/sgml.C 2008-09-20 14:09:53.589039389 +0300 @@ -61,7 +61,7 @@ static const struct TextToInt { char name[8]; int iso8859code; - char *asciistr; + const char *asciistr; unsigned long unicode; } entities[] = { { "AElig", LATIN1_AElig, "AE", 0x00c6}, Index: html2text-1.3.2a/HTMLParser.h =================================================================== --- html2text-1.3.2a.orig/HTMLParser.h 2008-09-20 13:59:22.124974404 +0300 +++ html2text-1.3.2a/HTMLParser.h 2008-09-20 14:09:53.589039389 +0300 @@ -487,7 +487,7 @@ /* decl const */ public: int YY_HTMLParser_PARSE(YY_HTMLParser_PARSE_PARAM); - virtual void YY_HTMLParser_ERROR(char *) YY_HTMLParser_ERROR_BODY; + virtual void YY_HTMLParser_ERROR(const char *) YY_HTMLParser_ERROR_BODY; #ifdef YY_HTMLParser_PURE #ifdef YY_HTMLParser_LSP_NEEDED virtual int YY_HTMLParser_LEX(YY_HTMLParser_STYPE *YY_HTMLParser_LVAL,YY_HTMLParser_LTYPE *YY_HTMLParser_LLOC) YY_HTMLParser_LEX_BODY; Index: html2text-1.3.2a/html2text.C =================================================================== --- html2text-1.3.2a.orig/html2text.C 2008-09-20 14:09:40.133207014 +0300 +++ html2text-1.3.2a/html2text.C 2008-09-20 14:09:53.589039389 +0300 @@ -85,7 +85,7 @@ {} private: - /*virtual*/ void yyerror(char *); + /*virtual*/ void yyerror(const char *); /*virtual*/ void process(const Document &); ostream &os; @@ -95,7 +95,7 @@ }; /*virtual*/ void -MyParser::yyerror(char *p) +MyParser::yyerror(const char *p) { /* Index: html2text-1.3.2a/HTMLParser.C =================================================================== --- html2text-1.3.2a.orig/HTMLParser.C 2008-09-20 14:08:49.593844329 +0300 +++ html2text-1.3.2a/HTMLParser.C 2008-09-20 14:09:53.593036056 +0300 @@ -600,7 +600,7 @@ /* decl const */ public: int YY_HTMLParser_PARSE (YY_HTMLParser_PARSE_PARAM); - virtual void YY_HTMLParser_ERROR(char *msg) YY_HTMLParser_ERROR_BODY; + virtual void YY_HTMLParser_ERROR(const char *msg) YY_HTMLParser_ERROR_BODY; #ifdef YY_HTMLParser_PURE #ifdef YY_HTMLParser_LSP_NEEDED virtual int YY_HTMLParser_LEX (YY_HTMLParser_STYPE *YY_HTMLParser_LVAL,YY_HTMLParser_LTYPE *YY_HTMLParser_LLOC) YY_HTMLParser_LEX_BODY;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor