Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
77f54282
Commit
77f54282
authored
Jan 24, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple little problems with signed vs. unsigned
characters ...
parent
17467bb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+6
-6
src/include/libpq/libpq.h
src/include/libpq/libpq.h
+4
-4
No files found.
src/backend/libpq/pqcomm.c
View file @
77f54282
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.6
4 1999/01/23 22:27:28
tgl Exp $
* $Id: pqcomm.c,v 1.6
5 1999/01/24 02:47:15
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -83,8 +83,8 @@ extern FILE * debug_port; /* in util.c */
/*
* Buffers
*/
char
PqSendBuffer
[
PQ_BUFFER_SIZE
];
char
PqRecvBuffer
[
PQ_BUFFER_SIZE
];
unsigned
char
PqSendBuffer
[
PQ_BUFFER_SIZE
];
unsigned
char
PqRecvBuffer
[
PQ_BUFFER_SIZE
];
int
PqSendPointer
,
PqRecvPointer
,
PqRecvLength
;
...
...
@@ -173,8 +173,8 @@ pq_close()
int
pq_flush
()
{
char
*
bufptr
=
PqSendBuffer
;
char
*
bufend
=
PqSendBuffer
+
PqSendPointer
;
unsigned
char
*
bufptr
=
PqSendBuffer
;
unsigned
char
*
bufend
=
PqSendBuffer
+
PqSendPointer
;
while
(
bufptr
<
bufend
)
{
...
...
@@ -725,7 +725,7 @@ pq_putncharlen(char *s, int n)
* Act like the stdio putc() function. Write one character
* to the stream. Return this character, or EOF on error.
*/
int
pq_putchar
(
char
c
)
int
pq_putchar
(
unsigned
char
c
)
{
if
(
PqSendPointer
>=
PQ_BUFFER_SIZE
)
if
(
pq_flush
())
/* If buffer is full, then flush it out */
...
...
src/include/libpq/libpq.h
View file @
77f54282
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq.h,v 1.2
4 1999/01/23 22:27:2
5 tgl Exp $
* $Id: libpq.h,v 1.2
5 1999/01/24 02:47:1
5 tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -263,7 +263,7 @@ extern int pq_getchar(void);
extern
int
pq_peekchar
(
void
);
extern
int
pq_getnchar
(
char
*
s
,
int
off
,
int
maxlen
);
extern
int
pq_getint
(
int
b
);
extern
int
pq_putchar
(
char
c
);
extern
int
pq_putchar
(
unsigned
char
c
);
extern
void
pq_putstr
(
char
*
s
);
extern
void
pq_putnchar
(
char
*
s
,
int
n
);
extern
void
pq_putint
(
int
i
,
int
b
);
...
...
@@ -291,9 +291,9 @@ extern void StreamClose(int sock);
#define PQ_BUFFER_SIZE 8192
extern
char
PqSendBuffer
[
PQ_BUFFER_SIZE
];
extern
unsigned
char
PqSendBuffer
[
PQ_BUFFER_SIZE
];
extern
int
PqSendPointer
;
/* Next index to store a byte in PqSendBuffer */
extern
char
PqRecvBuffer
[
PQ_BUFFER_SIZE
];
extern
unsigned
char
PqRecvBuffer
[
PQ_BUFFER_SIZE
];
extern
int
PqRecvPointer
;
/* Next index to read a byte from PqRecvBuffer */
extern
int
PqRecvLength
;
/* End of data available in PqRecvBuffer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment