]> sjero.net Git - linphone/commitdiff
Add strtok in ortp for mingw compilation
authorMargaux Clerc <margaux.clerc@belledonne-communications>
Wed, 5 Jun 2013 12:30:01 +0000 (14:30 +0200)
committerMargaux Clerc <margaux.clerc@belledonne-communications>
Wed, 5 Jun 2013 12:30:01 +0000 (14:30 +0200)
coreapi/message_storage.c

index deed140c7a48c8a2c410c45719d93845ec2f5c5c..765543f7a321a29b379e939cf2651197b5cb0544 100644 (file)
@@ -83,7 +83,7 @@ void linphone_sql_request_message(sqlite3 *db,const char *stmt,LinphoneChatRoom
        int ret;\r
        ret=sqlite3_exec(db,stmt,callback,cr,&errmsg);\r
        if(ret != SQLITE_OK) {\r
-               printf("Error in creation: %s.\n", errmsg);\r
+               ms_error("Error in creation: %s.\n", errmsg);\r
                sqlite3_free(errmsg);\r
        }\r
 }\r
@@ -197,7 +197,7 @@ void linphone_create_table(sqlite3* db){
        ret=sqlite3_exec(db,"CREATE TABLE if not exists history (id INTEGER PRIMARY KEY AUTOINCREMENT, localContact TEXT NOT NULL, remoteContact TEXT NOT NULL, direction INTEGER, message TEXT, time TEXT NOT NULL, read INTEGER, status INTEGER);",\r
                0,0,&errmsg);\r
        if(ret != SQLITE_OK) {\r
-               printf("Error in creation: %s.\n", errmsg);\r
+               ms_error("Error in creation: %s.\n", errmsg);\r
                sqlite3_free(errmsg);\r
        }\r
 }\r
@@ -209,7 +209,7 @@ void linphone_core_message_storage_init(LinphoneCore *lc){
        ret=sqlite3_open(lc->chat_db_file,&db);\r
        if(ret != SQLITE_OK) {\r
                errmsg=sqlite3_errmsg(db);\r
-               printf("Error in the opening: %s.\n", errmsg);\r
+               ms_error("Error in the opening: %s.\n", errmsg);\r
                sqlite3_close(db);\r
        }\r
        linphone_create_table(db);\r