@@ -942,7 +942,7 @@ static void comp_to_v4(vcardcomponent *impl)
942
942
buf_ptr = mediatype + size ;
943
943
icalmemory_append_string (& mediatype , & buf_ptr ,
944
944
& size , type -> xvalue );
945
- for (char * c = mediatype ; (* c = tolower (* c )); c ++ );
945
+ for (char * c = mediatype ; (* c = ( char ) tolower (* c )); c ++ );
946
946
947
947
/* Remove this TYPE */
948
948
vcardenumarray_remove_element_at (types , i );
@@ -1070,7 +1070,7 @@ static void comp_to_v3(vcardcomponent *impl)
1070
1070
if ((subtype = strchr (mediatype , '/' ))) {
1071
1071
/* Copy and uppercase the subtype */
1072
1072
subtype = icalmemory_strdup (subtype + 1 );
1073
- for (char * c = subtype ; (* c = toupper (* c )); c ++ );
1073
+ for (char * c = subtype ; (* c = ( char ) toupper (* c )); c ++ );
1074
1074
1075
1075
/* Add TYPE parameter */
1076
1076
vcardenumarray_element type = { .xvalue = subtype };
@@ -1123,8 +1123,7 @@ static void comp_to_v3(vcardcomponent *impl)
1123
1123
base64 = strstr (mediatype , ";base64," );
1124
1124
1125
1125
if (base64 ) {
1126
- vcardparameter * param =
1127
- vcardparameter_new_encoding (VCARD_ENCODING_B );
1126
+ param = vcardparameter_new_encoding (VCARD_ENCODING_B );
1128
1127
vcardproperty_add_parameter (prop , param );
1129
1128
1130
1129
* base64 = '\0' ;
@@ -1136,7 +1135,7 @@ static void comp_to_v3(vcardcomponent *impl)
1136
1135
1137
1136
if ((subtype = strchr (mediatype , '/' ))) {
1138
1137
/* Copy and uppercase the subtype */
1139
- for (char * c = ++ subtype ; (* c = toupper (* c )); c ++ );
1138
+ for (char * c = ++ subtype ; (* c = ( char ) toupper (* c )); c ++ );
1140
1139
1141
1140
/* Add TYPE parameter */
1142
1141
vcardenumarray_element type = { .xvalue = subtype };
0 commit comments