summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2005-11-11 19:01:31 +0000
committerBenny Prijono <bennylp@teluu.com>2005-11-11 19:01:31 +0000
commit0b9e388f7f10dac01d5134ed6c1b24695810874e (patch)
treef01b4f05e8d074a8dba14a96b93803fd6797c105 /pjsip/src/pjsua
parent0bc0f9112ac6319d7ce8662de86d6c076bd4b1e3 (diff)
First clean compile of pjsip
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@43 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua')
-rw-r--r--pjsip/src/pjsua/getopt.c4
-rw-r--r--pjsip/src/pjsua/main.c8
-rw-r--r--pjsip/src/pjsua/misc.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/pjsip/src/pjsua/getopt.c b/pjsip/src/pjsua/getopt.c
index caa8920f..5d4689cf 100644
--- a/pjsip/src/pjsua/getopt.c
+++ b/pjsip/src/pjsua/getopt.c
@@ -278,7 +278,7 @@ static char *posixly_correct;
On some systems, it contains special magic macros that don't work
in GCC. */
#include <string.h>
-#define my_index strchr
+#define my_index pj_native_strchr
#else
static char *
@@ -644,7 +644,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
then exchange with previous non-options as if it were an option,
then skip everything else like a non-option. */
- if (optind != argc && !strcmp (argv[optind], "--"))
+ if (optind != argc && !pj_native_strcmp(argv[optind], "--"))
{
optind++;
diff --git a/pjsip/src/pjsua/main.c b/pjsip/src/pjsua/main.c
index c04d1a22..a8a0f49a 100644
--- a/pjsip/src/pjsua/main.c
+++ b/pjsip/src/pjsua/main.c
@@ -250,7 +250,7 @@ static void pres_on_received_request(pjsip_presentity *pres, pjsip_rx_data *rdat
urllen = pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, rdata->from->uri, url, sizeof(url)-1);
if (urllen < 1) {
- strcpy(url, "<unknown>");
+ pj_native_strcpy(url, "<unknown>");
} else {
url[urllen] = '\0';
}
@@ -1103,7 +1103,7 @@ static pj_status_t init_stack()
}
if (global.user_id[0]=='\0') {
- strcpy(global.user_id, "user");
+ pj_native_strcpy(global.user_id, "user");
}
/* build contact */
@@ -1233,12 +1233,12 @@ static int on_incoming_im_msg(pjsip_rx_data *rdata)
len = pjsip_uri_print( PJSIP_URI_IN_CONTACT_HDR,
rdata->from->uri, from, sizeof(from));
if (len > 0) from[len] = '\0';
- else strcpy(from, "<URL too long..>");
+ else pj_native_strcpy(from, "<URL too long..>");
len = pjsip_uri_print( PJSIP_URI_IN_CONTACT_HDR,
rdata->to->uri, to, sizeof(to));
if (len > 0) to[len] = '\0';
- else strcpy(to, "<URL too long..>");
+ else pj_native_strcpy(to, "<URL too long..>");
PJ_LOG(3,(THIS_FILE, "Incoming instant message:"));
diff --git a/pjsip/src/pjsua/misc.c b/pjsip/src/pjsua/misc.c
index 36439ccc..58cc795f 100644
--- a/pjsip/src/pjsua/misc.c
+++ b/pjsip/src/pjsua/misc.c
@@ -341,7 +341,7 @@ static int parse_args(pj_pool_t *pool, int argc, char *argv[])
global.cred_info[0].data = pj_str(optarg);
break;
case OPT_USE_STUN1: /* STUN server 1 */
- p = strchr(optarg, ':');
+ p = pj_native_strchr(optarg, ':');
if (p) {
*p = '\0';
global.stun_srv1 = pj_str(optarg);
@@ -356,7 +356,7 @@ static int parse_args(pj_pool_t *pool, int argc, char *argv[])
}
break;
case OPT_USE_STUN2: /* STUN server 2 */
- p = strchr(optarg, ':');
+ p = pj_native_strchr(optarg, ':');
if (p) {
*p = '\0';
global.stun_srv2 = pj_str(optarg);