chiark
/
gitweb
/
~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10cee63
)
noip.c: Add `const' qualifiers on `aclnode *' arguments.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 21:09:22 +0000
(22:09 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 23:06:01 +0000
(
00:06
+0100)
noip.c
patch
|
blob
|
blame
|
history
diff --git
a/noip.c
b/noip.c
index cf61a02cc35943786c234f6d1714a112128c5a16..2cf29595fd0344578a985b081da615b6acb9f316 100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-503,7
+503,7
@@
static int parse_sockaddr(struct sockaddr *sa, const char *p)
#ifdef DEBUG
/* Write to standard error a description of the ACL node A. */
#ifdef DEBUG
/* Write to standard error a description of the ACL node A. */
-static void dump_aclnode(aclnode *a)
+static void dump_aclnode(
const
aclnode *a)
{
char buf[ADDRBUFSZ];
const char *p;
{
char buf[ADDRBUFSZ];
const char *p;
@@
-526,7
+526,7
@@
static void dump_aclnode(aclnode *a)
fputc('\n', stderr);
}
fputc('\n', stderr);
}
-static void dump_acl(aclnode *a)
+static void dump_acl(
const
aclnode *a)
{
int act = ALLOW;
{
int act = ALLOW;
@@
-541,7
+541,7
@@
static void dump_acl(aclnode *a)
#endif
/* Returns nonzero if the ACL A allows the socket address SA. */
#endif
/* Returns nonzero if the ACL A allows the socket address SA. */
-static int acl_allows_p(aclnode *a, const struct sockaddr *sa)
+static int acl_allows_p(
const
aclnode *a, const struct sockaddr *sa)
{
unsigned short port = port_from_sockaddr(sa);
int act = ALLOW;
{
unsigned short port = port_from_sockaddr(sa);
int act = ALLOW;