Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

m4/ngctl/ppp: Silence gcc47 -Wcast-qual warnings.

  • Loading branch information...
commit 85d4c9acc5d936b1944f7f17733259d69311d80d 1 parent 2091b38
Sascha Wildner authored
View
2  usr.bin/m4/main.c
@@ -562,7 +562,7 @@ inspect(int c, char *tp)
return NULL;
}
- p = ohash_find(&macros, ohash_qlookupi(&macros, name, (const char **)&tp));
+ p = ohash_find(&macros, ohash_qlookupi(&macros, name, (const char **)(void *)&tp));
if (p == NULL)
return NULL;
if (macro_getdef(p) == NULL)
View
2  usr.sbin/ngctl/main.c
@@ -155,7 +155,7 @@ main(int ac, char *av[])
} else
Usage("no command specified");
} else {
- rtn = DoCommand(ac, (const char **)av);
+ rtn = DoCommand(ac, (const char **)(void *)av);
}
/* Convert command return code into system exit code */
View
2  usr.sbin/ppp/physical.c
@@ -551,7 +551,7 @@ physical_DescriptorRead(struct fdescriptor *d, struct bundle *bundle,
if (p->link.lcp.fsm.state <= ST_CLOSED) {
if (p->type != PHYS_DEDICATED) {
- found = hdlc_Detect((u_char const **)&rbuff, n, physical_IsSync(p));
+ found = hdlc_Detect((u_char const **)(void *)&rbuff, n, physical_IsSync(p));
if (rbuff != p->input.buf)
log_WritePrompts(p->dl, "%.*s", (int)(rbuff - p->input.buf),
p->input.buf);
Please sign in to comment.
Something went wrong with that request. Please try again.