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
7c23bfd2
Commit
7c23bfd2
authored
Jan 31, 2020
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sprinkle some const decorations
This might help clarify the API a bit.
parent
7ca8c970
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/backend/libpq/pqcomm.c
src/backend/libpq/pqcomm.c
+6
-6
src/include/libpq/libpq.h
src/include/libpq/libpq.h
+2
-2
No files found.
src/backend/libpq/pqcomm.c
View file @
7c23bfd2
...
@@ -166,8 +166,8 @@ static int internal_putbytes(const char *s, size_t len);
...
@@ -166,8 +166,8 @@ static int internal_putbytes(const char *s, size_t len);
static
int
internal_flush
(
void
);
static
int
internal_flush
(
void
);
#ifdef HAVE_UNIX_SOCKETS
#ifdef HAVE_UNIX_SOCKETS
static
int
Lock_AF_UNIX
(
c
har
*
unixSocketDir
,
char
*
unixSocketPath
);
static
int
Lock_AF_UNIX
(
c
onst
char
*
unixSocketDir
,
const
char
*
unixSocketPath
);
static
int
Setup_AF_UNIX
(
char
*
sock_path
);
static
int
Setup_AF_UNIX
(
c
onst
c
har
*
sock_path
);
#endif
/* HAVE_UNIX_SOCKETS */
#endif
/* HAVE_UNIX_SOCKETS */
static
const
PQcommMethods
PqCommSocketMethods
=
{
static
const
PQcommMethods
PqCommSocketMethods
=
{
...
@@ -327,8 +327,8 @@ socket_close(int code, Datum arg)
...
@@ -327,8 +327,8 @@ socket_close(int code, Datum arg)
*/
*/
int
int
StreamServerPort
(
int
family
,
char
*
hostName
,
unsigned
short
portNumber
,
StreamServerPort
(
int
family
,
c
onst
c
har
*
hostName
,
unsigned
short
portNumber
,
char
*
unixSocketDir
,
c
onst
c
har
*
unixSocketDir
,
pgsocket
ListenSocket
[],
int
MaxListen
)
pgsocket
ListenSocket
[],
int
MaxListen
)
{
{
pgsocket
fd
;
pgsocket
fd
;
...
@@ -611,7 +611,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
...
@@ -611,7 +611,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
* Lock_AF_UNIX -- configure unix socket file path
* Lock_AF_UNIX -- configure unix socket file path
*/
*/
static
int
static
int
Lock_AF_UNIX
(
c
har
*
unixSocketDir
,
char
*
unixSocketPath
)
Lock_AF_UNIX
(
c
onst
char
*
unixSocketDir
,
const
char
*
unixSocketPath
)
{
{
/*
/*
* Grab an interlock file associated with the socket file.
* Grab an interlock file associated with the socket file.
...
@@ -642,7 +642,7 @@ Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath)
...
@@ -642,7 +642,7 @@ Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath)
* Setup_AF_UNIX -- configure unix socket permissions
* Setup_AF_UNIX -- configure unix socket permissions
*/
*/
static
int
static
int
Setup_AF_UNIX
(
char
*
sock_path
)
Setup_AF_UNIX
(
c
onst
c
har
*
sock_path
)
{
{
/*
/*
* Fix socket ownership/permission if requested. Note we must do this
* Fix socket ownership/permission if requested. Note we must do this
...
...
src/include/libpq/libpq.h
View file @
7c23bfd2
...
@@ -55,8 +55,8 @@ extern const PGDLLIMPORT PQcommMethods *PqCommMethods;
...
@@ -55,8 +55,8 @@ extern const PGDLLIMPORT PQcommMethods *PqCommMethods;
*/
*/
extern
WaitEventSet
*
FeBeWaitSet
;
extern
WaitEventSet
*
FeBeWaitSet
;
extern
int
StreamServerPort
(
int
family
,
char
*
hostName
,
extern
int
StreamServerPort
(
int
family
,
c
onst
c
har
*
hostName
,
unsigned
short
portNumber
,
char
*
unixSocketDir
,
unsigned
short
portNumber
,
c
onst
c
har
*
unixSocketDir
,
pgsocket
ListenSocket
[],
int
MaxListen
);
pgsocket
ListenSocket
[],
int
MaxListen
);
extern
int
StreamConnection
(
pgsocket
server_fd
,
Port
*
port
);
extern
int
StreamConnection
(
pgsocket
server_fd
,
Port
*
port
);
extern
void
StreamClose
(
pgsocket
sock
);
extern
void
StreamClose
(
pgsocket
sock
);
...
...
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