diff options
author | Jusung Son <jusung07.son@samsung.com> | 2020-01-16 11:04:26 +0900 |
---|---|---|
committer | Jusung Son <jusung07.son@samsung.com> | 2020-05-18 16:12:52 +0900 |
commit | e765e131e18b8ceae4947cbca78fe3559b88aa8a (patch) | |
tree | 28257839425a2f731fa68695880f257b5b5e17e5 | |
parent | 41cceedd0310f802b483b771e28a7a78a9ddf8e0 (diff) | |
download | data-control-e765e131e18b8ceae4947cbca78fe3559b88aa8a.tar.gz data-control-e765e131e18b8ceae4947cbca78fe3559b88aa8a.tar.bz2 data-control-e765e131e18b8ceae4947cbca78fe3559b88aa8a.zip |
Remove compile warning messages
Change-Id: Ib455ca27ef67ff47741c0b7171c3ba0bac63add5
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
-rw-r--r-- | src/data_control_sql_cursor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data_control_sql_cursor.c b/src/data_control_sql_cursor.c index eb0a6fb..cb35067 100644 --- a/src/data_control_sql_cursor.c +++ b/src/data_control_sql_cursor.c @@ -183,7 +183,7 @@ EXPORT_API int data_control_sql_get_column_name(result_set_cursor cursor, ret = lseek(fd, __cursor->resultset_col_name_offset, SEEK_SET); if (ret < 0) { _LOGE("unable to seek in the resultset file: %ld %s", - __cursor->resultset_current_offset, + (long)__cursor->resultset_current_offset, strerror_r(errno, err_buf, sizeof(err_buf))); return DATA_CONTROL_ERROR_IO_ERROR; } @@ -255,7 +255,7 @@ EXPORT_API int data_control_sql_get_column_item_size(result_set_cursor cursor, ret = lseek(fd, __cursor->resultset_current_offset, SEEK_SET); if (ret < 0) { _LOGE("unable to seek in the resultset file: %ld %s", - __cursor->resultset_current_offset, + (long)__cursor->resultset_current_offset, strerror_r(errno, err_buf, sizeof(err_buf))); return DATA_CONTROL_ERROR_IO_ERROR; } @@ -713,7 +713,7 @@ EXPORT_API int data_control_sql_get_text_data(result_set_cursor cursor, if (type != (int)DATA_CONTROL_SQL_COLUMN_TYPE_TEXT) { _LOGE("type mismatch: requested for text type but %d present %ld", type, - __cursor->resultset_current_offset); + (long)__cursor->resultset_current_offset); return DATA_CONTROL_ERROR_INVALID_PARAMETER; } |