Re: [PATCH 1/3] dnsproxy: fix constiness of variables

2012-05-28 Thread Patrik Flykt
On Wed, 2012-05-23 at 15:00 -0300, Lucas De Marchi wrote: > There's no point in casting 'domain' and 'query' to char* to remove the > const since we are not modifying them. Also we can avoid another var > entirely by updating the pointers only. All three patches applied, thanks a lot! Pat

[PATCH 1/3] dnsproxy: fix constiness of variables

2012-05-23 Thread Lucas De Marchi
There's no point in casting 'domain' and 'query' to char* to remove the const since we are not modifying them. Also we can avoid another var entirely by updating the pointers only. --- src/dnsproxy.c | 39 ++- 1 file changed, 18 insertions(+), 21 deletions(-)