Skip to content
Snippets Groups Projects
Commit 39b718dd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix typos in comments

parent 76706b71
No related branches found
No related tags found
No related merge requests found
Pipeline #4999 passed
......@@ -896,7 +896,7 @@ int putusername(scfg_t* cfg, int number, const char *name)
int getbirthyear(const char* birth)
{
if(IS_DIGIT(birth[2])) // CCYYMMYY format
if(IS_DIGIT(birth[2])) // CCYYMMDD format
return DECVAL(birth[0], 1000)
+ DECVAL(birth[1], 100)
+ DECVAL(birth[2], 10)
......@@ -915,7 +915,7 @@ int getbirthyear(const char* birth)
int getbirthmonth(scfg_t* cfg, const char* birth)
{
if(IS_DIGIT(birth[5])) // CCYYMMYY format
if(IS_DIGIT(birth[5])) // CCYYMMDD format
return DECVAL(birth[4], 10) + DECVAL(birth[5], 1);
if(cfg->sys_misc & SM_EURODATE) { // DD/MM/YY format
return DECVAL(birth[3], 10) + DECVAL(birth[4], 1);
......@@ -926,7 +926,7 @@ int getbirthmonth(scfg_t* cfg, const char* birth)
int getbirthday(scfg_t* cfg, const char* birth)
{
if(IS_DIGIT(birth[5])) // CCYYMMYY format
if(IS_DIGIT(birth[5])) // CCYYMMDD format
return DECVAL(birth[6], 10) + DECVAL(birth[7], 1);
if(cfg->sys_misc & SM_EURODATE) { // DD/MM/YY format
return DECVAL(birth[0], 10) + DECVAL(birth[1], 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment