Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
4608f359
Commit
4608f359
authored
17 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix a passel of signed vs unsigned char warnings.
parent
cfd6c89b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/xml2/xpath.c
+9
-9
9 additions, 9 deletions
contrib/xml2/xpath.c
contrib/xml2/xslt_proc.c
+1
-1
1 addition, 1 deletion
contrib/xml2/xslt_proc.c
with
10 additions
and
10 deletions
contrib/xml2/xpath.c
+
9
−
9
View file @
4608f359
...
...
@@ -209,7 +209,7 @@ xml_encode_special_chars(PG_FUNCTION_ARGS)
pfree
(
ts
);
ressize
=
strlen
(
tt
);
ressize
=
strlen
(
(
char
*
)
tt
);
tout
=
(
text
*
)
palloc
(
ressize
+
VARHDRSZ
);
memcpy
(
VARDATA
(
tout
),
tt
,
ressize
);
SET_VARSIZE
(
tout
,
ressize
+
VARHDRSZ
);
...
...
@@ -265,7 +265,7 @@ pgxmlNodeSetToText(xmlNodeSetPtr nodeset,
/* If this isn't the last entry, write the plain sep. */
if
(
i
<
(
nodeset
->
nodeNr
)
-
1
)
xmlBufferWriteChar
(
buf
,
plainsep
);
xmlBufferWriteChar
(
buf
,
(
char
*
)
plainsep
);
}
else
{
...
...
@@ -604,12 +604,12 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
default:
elog
(
NOTICE
,
"unsupported XQuery result: %d"
,
res
->
type
);
xpresstr
=
xmlStrdup
(
"<unsupported/>"
);
xpresstr
=
xmlStrdup
(
(
const
xmlChar
*
)
"<unsupported/>"
);
}
/* Now convert this result back to text */
ressize
=
strlen
(
xpresstr
);
ressize
=
strlen
(
(
char
*
)
xpresstr
);
xpres
=
(
text
*
)
palloc
(
ressize
+
VARHDRSZ
);
memcpy
(
VARDATA
(
xpres
),
xpresstr
,
ressize
);
SET_VARSIZE
(
xpres
,
ressize
+
VARHDRSZ
);
...
...
@@ -659,8 +659,8 @@ xpath_table(PG_FUNCTION_ARGS)
char
**
values
;
xmlChar
**
xpaths
;
xmlC
har
*
pos
;
xmlChar
*
pathsep
=
"|"
;
c
har
*
pos
;
const
char
*
pathsep
=
"|"
;
int
numpaths
;
int
ret
;
...
...
@@ -738,7 +738,7 @@ xpath_table(PG_FUNCTION_ARGS)
pos
=
xpathset
;
do
{
xpaths
[
numpaths
]
=
pos
;
xpaths
[
numpaths
]
=
(
xmlChar
*
)
pos
;
pos
=
strstr
(
pos
,
pathsep
);
if
(
pos
!=
NULL
)
{
...
...
@@ -893,7 +893,7 @@ xpath_table(PG_FUNCTION_ARGS)
default:
elog
(
NOTICE
,
"unsupported XQuery result: %d"
,
res
->
type
);
resstr
=
xmlStrdup
(
"<unsupported/>"
);
resstr
=
xmlStrdup
(
(
const
xmlChar
*
)
"<unsupported/>"
);
}
...
...
@@ -901,7 +901,7 @@ xpath_table(PG_FUNCTION_ARGS)
* Insert this into the appropriate column in the
* result tuple.
*/
values
[
j
+
1
]
=
resstr
;
values
[
j
+
1
]
=
(
char
*
)
resstr
;
}
xmlXPathFreeContext
(
ctxt
);
}
...
...
This diff is collapsed.
Click to expand it.
contrib/xml2/xslt_proc.c
+
1
−
1
View file @
4608f359
...
...
@@ -102,7 +102,7 @@ xslt_process(PG_FUNCTION_ARGS)
stylesheet
=
xsltParseStylesheetDoc
(
ssdoc
);
}
else
stylesheet
=
xsltParseStylesheetFile
(
GET_STR
(
ssheet
));
stylesheet
=
xsltParseStylesheetFile
(
(
xmlChar
*
)
GET_STR
(
ssheet
));
if
(
stylesheet
==
NULL
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment