Quiet many instances of "warning: passing arg N of str___ discards const from
[freeradius.git] / src / main / radiusd.c
index 372227c..eec0254 100644 (file)
@@ -832,7 +832,7 @@ int main(int argc, char **argv)
        if (debug_flag) setlinebuf(stdout);
 
        if (myip == 0) {
-               strcpy(buffer, "*");
+               strcpy((char *)buffer, "*");
        } else {
                ip_ntoa((char *)buffer, myip);
        }
@@ -963,7 +963,7 @@ int main(int argc, char **argv)
                        request->child_pid = NO_SUCH_CHILD_PID;
                        request->prev = NULL;
                        request->next = NULL;
-                       strNcpy(request->secret, cl->secret, sizeof(request->secret));
+                       strNcpy(request->secret, (char *)cl->secret, sizeof(request->secret));
                        rad_process(request, spawn_flag);
                } /* loop over authfd, acctfd, proxyfd */