Fix some warnings.

This commit is contained in:
hyousatsu
2024-07-06 09:42:25 +00:00
parent c79224b367
commit f0123efa84
44 changed files with 95 additions and 95 deletions

View File

@@ -1323,7 +1323,7 @@ mb_clear_selected_calendar(
if (geditor_showing(e))
remove_from_gaccess_list(name, e);
mb_deregister_names(name, c);
mb_refresh_canvas(c->browser, c);
mb_refresh_canvas(b, c);
}
extern void

View File

@@ -942,7 +942,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP)
memset(a->repeat_type, 0, sizeof(CSA_attribute));
_DtCm_set_sint32_attrval(rfp->repeat_type,
&a->repeat_type->value);
(cms_attribute_value **) &a->repeat_type->value);
}
else a->repeat_type->value->item.sint32_value = rfp->repeat_type;
}
@@ -958,7 +958,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP)
memset(a->repeat_type, 0, sizeof(CSA_attribute));
_DtCm_set_sint32_attrval(rfp->repeat_type,&a->repeat_type->value);
_DtCm_set_sint32_attrval(rfp->repeat_type, (cms_attribute_value **) &a->repeat_type->value);
}
else a->repeat_type->value->item.sint32_value = rfp->repeat_type;
}

View File

@@ -1351,7 +1351,7 @@ cm_print_appt_text(CMGraphicsInfo *gInfo, char *str,
unsigned long _len;
_len = strlen(str);
_converter_( str, _len, &to, &to_len );
_converter_( str, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) )
str = to;
@@ -1578,7 +1578,7 @@ cm_print_todo_text(CMGraphicsInfo *gInfo, char *str1, CSA_sint32 as,
unsigned long _len;
_len = strlen(str1);
_converter_( str1, _len, &to, &to_len );
_converter_( str1, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) )
str1 = to;
}
@@ -2009,7 +2009,7 @@ local_dayname(Calendar *c, char **array_place, int dayNum)
dayCatIndex[dayNum], defaultDays[dayNum]);
_len = strlen( source );
_converter_( source, _len, &to, &to_len );
_converter_( source, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = euc_to_octal(to);
} else {
@@ -2041,7 +2041,7 @@ local_dayname3(Calendar *c, char **array_place, int dayNum)
dayCatIndex[dayNum], defaultDays[dayNum]);
_len = strlen( source );
_converter_( source, _len, &to, &to_len );
_converter_( source, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = euc_to_octal(to);
} else {
@@ -2089,7 +2089,7 @@ get_report_type_string(CMGraphicsInfo *gInfo)
defaultStrs[reportType]);
_len = strlen( str );
_converter_( str, _len, &to, &to_len );
_converter_( str, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = to;
}
@@ -2367,7 +2367,7 @@ x_open_file(Calendar *c)
unsigned long _len;
_len = strlen( gInfo->timestamp );
_converter_( gInfo->timestamp, _len, &to, &to_len );
_converter_( gInfo->timestamp, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) )
strncpy( gInfo->timestamp, to,
( BUFFERSIZE > to_len ) ? to_len : BUFFERSIZE - 1 );
@@ -2610,7 +2610,7 @@ x_print_header(void *gInfoP, char *buf, int pageNum, int numPages)
unsigned long _len;
_len = strlen( buf );
_converter_( buf, _len, &to, &to_len );
_converter_( buf, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = euc_to_octal(to);
} else {
@@ -2639,7 +2639,7 @@ x_print_header(void *gInfoP, char *buf, int pageNum, int numPages)
unsigned long _len;
_len = strlen( str2 );
_converter_( str2, _len, &to, &to_len );
_converter_( str2, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
strncpy( str2, to,
( BUFFERSIZE > to_len ) ? to_len : BUFFERSIZE );
@@ -2654,7 +2654,7 @@ x_print_header(void *gInfoP, char *buf, int pageNum, int numPages)
unsigned long _len;
_len = strlen( str );
_converter_( str, _len, &to, &to_len );
_converter_( str, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = to;
}
@@ -2717,7 +2717,7 @@ x_day_header (void *gInfoP)
unsigned long _len;
_len = strlen( str );
_converter_( str, _len, &to, &to_len );
_converter_( str, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = to;
}
@@ -2737,7 +2737,7 @@ x_day_header (void *gInfoP)
unsigned long _len;
_len = strlen( str );
_converter_( str, _len, &to, &to_len );
_converter_( str, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
str = to;
}
@@ -3249,7 +3249,7 @@ x_print_month(void *gInfoP, int mon, int yr, int x1,
unsigned long _len;
_len = strlen(str);
_converter_( str, _len, &to, &to_len );
_converter_( str, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
cm_strcpy(str, to);
}
@@ -3574,7 +3574,7 @@ x_week_daynames(void *gInfoP, char *dayName, int dayIndex, Boolean more)
unsigned long _len;
_len = strlen(dayName);
_converter_( dayName, _len, &to, &to_len );
_converter_( dayName, _len, (void **) &to, &to_len );
if ( ( to != NULL ) && ( to_len != 0 ) ) {
dayName = to;
}