projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: constify function arguments
[project/mdnsd.git]
/
service.c
diff --git
a/service.c
b/service.c
index
9d3f084
..
049de52
100644
(file)
--- a/
service.c
+++ b/
service.c
@@
-70,8
+70,8
@@
char *hostname = NULL;
static char *sdudp = "_services._dns-sd._udp.local";
static char *sdtcp = "_services._dns-sd._tcp.local";
static char *sdudp = "_services._dns-sd._udp.local";
static char *sdtcp = "_services._dns-sd._tcp.local";
-char*
-service_name(char *domain)
+char
*
+service_name(c
onst c
har *domain)
{
static char buffer[256];
{
static char buffer[256];
@@
-84,7
+84,7
@@
static void
service_send_ptr(struct uloop_fd *u, struct service *s)
{
unsigned char buffer[MAX_NAME_LEN];
service_send_ptr(struct uloop_fd *u, struct service *s)
{
unsigned char buffer[MAX_NAME_LEN];
- char *host = service_name(s->service);
+ c
onst c
har *host = service_name(s->service);
int len = dn_comp(host, buffer, MAX_NAME_LEN, NULL, NULL);
if (len < 1)
int len = dn_comp(host, buffer, MAX_NAME_LEN, NULL, NULL);
if (len < 1)
@@
-173,7
+173,7
@@
service_reply_a(struct uloop_fd *u, int type)
}
void
}
void
-service_reply(struct uloop_fd *u, char *match)
+service_reply(struct uloop_fd *u, c
onst c
har *match)
{
struct service *s;
{
struct service *s;
@@
-209,7
+209,7
@@
service_reply(struct uloop_fd *u, char *match)
}
void
}
void
-service_announce_services(struct uloop_fd *u, char *service)
+service_announce_services(struct uloop_fd *u, c
onst c
har *service)
{
struct service *s;
int tcp = 1;
{
struct service *s;
int tcp = 1;