This was missing at merge:
[lcr.git] / gsm_bs.cpp
index 3ac5bda..e25732a 100644 (file)
@@ -932,7 +932,7 @@ static int mncc_fd_write(struct lcr_fd *lfd, void *inst, int idx)
                        return mncc_fd_close(lfd);
                if (rc < 0)
                        return rc;
-               if (rc < qe->len)
+               if (rc < (int)qe->len)
                        return -1;
                /* dequeue the successfully sent message */
                qe2 = mncc_q_dequeue();
@@ -1005,7 +1005,7 @@ static int socket_retry_cb(struct lcr_timer *timer, void *instance, int index)
 int gsm_bs_init(void)
 {
        gsm->sun.sun_family = AF_UNIX;
-       strcpy(gsm->sun.sun_path, "/tmp/bsc_mncc");
+       SCPY(gsm->sun.sun_path, "/tmp/bsc_mncc");
 
        memset(&gsm->socket_retry, 0, sizeof(gsm->socket_retry));
        add_timer(&gsm->socket_retry, socket_retry_cb, NULL, 0);