1
1

Silence some compiler warnings

This commit was SVN r94.
Этот коммит содержится в:
Jeff Squyres 2004-01-07 20:55:00 +00:00
родитель f30c4087aa
Коммит 09a643212c
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -99,13 +99,13 @@ void lam_pk_ctc_set_info(uint8_t *buffer, uint8_t *info);
* Accessor functions
*/
lam_bool_t lam_ctc_get_is_user_msg(lam_ct_ctrl_t *ctrl);
inline lam_bool_t lam_ctc_get_is_user_msg(lam_ct_ctrl_t *ctrl)
bool lam_ctc_get_is_user_msg(lam_ct_ctrl_t *ctrl);
inline bool lam_ctc_get_is_user_msg(lam_ct_ctrl_t *ctrl)
{
return ctrl->ctc_is_user_msg;
}
void lam_ctc_set_is_user_msg(lam_ct_ctrl_t *ctrl, lam_bool_t yn);
inline void lam_ctc_set_is_user_msg(lam_ct_ctrl_t *ctrl, lam_bool_t yn)
void lam_ctc_set_is_user_msg(lam_ct_ctrl_t *ctrl, bool yn);
inline void lam_ctc_set_is_user_msg(lam_ct_ctrl_t *ctrl, bool yn)
{
ctrl->ctc_is_user_msg = yn;
}

Просмотреть файл

@ -41,9 +41,9 @@ void lam_arr_destroy(lam_array_t *arr);
/* initializes array with fixed length.
* lam_arr_init() must have been called first.
*/
lam_bool_t lam_arr_init_with(lam_array_t *arr, size_t length);
bool lam_arr_init_with(lam_array_t *arr, size_t length);
lam_bool_t lam_arr_append_item(lam_array_t *arr, lam_object_t *item);
bool lam_arr_append_item(lam_array_t *arr, lam_object_t *item);
lam_object_t *lam_arr_get_item(lam_array_t *arr, int index);
inline lam_object_t *lam_arr_get_item(lam_array_t *arr, int index)
@ -52,6 +52,7 @@ inline lam_object_t *lam_arr_get_item(lam_array_t *arr, int index)
{
return arr->arr_items[index];
}
return NULL;
}
size_t lam_arr_get_size(lam_array_t *arr);