Fix typo in name of function
This commit is contained in:
parent
8be5bd230b
commit
df7cc6d0fc
@ -217,7 +217,7 @@ static signed int gds_convert_signed_int(const char *data)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
GDS_ERROR("This should not happen");
|
GDS_ERROR("Conversion from GDS data to signed int failed.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +248,7 @@ static int16_t gds_convert_signed_int16(const char *data)
|
|||||||
* @param data Buffer containing the uint16
|
* @param data Buffer containing the uint16
|
||||||
* @return result
|
* @return result
|
||||||
*/
|
*/
|
||||||
static uint16_t gds_convert_unsigend_int16(const char *data)
|
static uint16_t gds_convert_unsigned_int16(const char *data)
|
||||||
{
|
{
|
||||||
if (!data) {
|
if (!data) {
|
||||||
GDS_ERROR("This should not happen");
|
GDS_ERROR("This should not happen");
|
||||||
@ -541,17 +541,17 @@ static void gds_parse_date(const char *buffer, int length, struct gds_time_field
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (temp_date = mod_date; 1; temp_date = access_date) {
|
for (temp_date = mod_date; 1; temp_date = access_date) {
|
||||||
temp_date->year = gds_convert_unsigend_int16(buffer);
|
temp_date->year = gds_convert_unsigned_int16(buffer);
|
||||||
buffer += 2;
|
buffer += 2;
|
||||||
temp_date->month = gds_convert_unsigend_int16(buffer);
|
temp_date->month = gds_convert_unsigned_int16(buffer);
|
||||||
buffer += 2;
|
buffer += 2;
|
||||||
temp_date->day = gds_convert_unsigend_int16(buffer);
|
temp_date->day = gds_convert_unsigned_int16(buffer);
|
||||||
buffer += 2;
|
buffer += 2;
|
||||||
temp_date->hour = gds_convert_unsigend_int16(buffer);
|
temp_date->hour = gds_convert_unsigned_int16(buffer);
|
||||||
buffer += 2;
|
buffer += 2;
|
||||||
temp_date->minute = gds_convert_unsigend_int16(buffer);
|
temp_date->minute = gds_convert_unsigned_int16(buffer);
|
||||||
buffer += 2;
|
buffer += 2;
|
||||||
temp_date->second = gds_convert_unsigend_int16(buffer);
|
temp_date->second = gds_convert_unsigned_int16(buffer);
|
||||||
buffer += 2;
|
buffer += 2;
|
||||||
|
|
||||||
if (temp_date == access_date)
|
if (temp_date == access_date)
|
||||||
@ -666,7 +666,7 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rec_data_length = gds_convert_unsigend_int16(workbuff);
|
rec_data_length = gds_convert_unsigned_int16(workbuff);
|
||||||
|
|
||||||
if (rec_data_length < 4) {
|
if (rec_data_length < 4) {
|
||||||
/* Possible Zero-Padding: */
|
/* Possible Zero-Padding: */
|
||||||
@ -689,7 +689,7 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
GDS_ERROR("Unexpected end of file");
|
GDS_ERROR("Unexpected end of file");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rec_type = gds_convert_unsigend_int16(workbuff);
|
rec_type = gds_convert_unsigned_int16(workbuff);
|
||||||
|
|
||||||
|
|
||||||
/* if begin: Allocate structures */
|
/* if begin: Allocate structures */
|
||||||
|
Loading…
Reference in New Issue
Block a user