Fix non-C style comments in libalpm
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c27904661e
commit
ed848b1c54
|
@ -489,7 +489,7 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
|
|||
|
||||
char first = tolower(line[0]);
|
||||
if(first > 'a' && first < 'z') {
|
||||
struct tm tmp_tm = {0}; //initialize to null incase of failure
|
||||
struct tm tmp_tm = {0}; /* initialize to null in case of failure */
|
||||
setlocale(LC_TIME, "C");
|
||||
strptime(line, "%a %b %e %H:%M:%S %Y", &tmp_tm);
|
||||
info->builddate = mktime(&tmp_tm);
|
||||
|
@ -505,7 +505,7 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq)
|
|||
|
||||
char first = tolower(line[0]);
|
||||
if(first > 'a' && first < 'z') {
|
||||
struct tm tmp_tm = {0}; //initialize to null incase of failure
|
||||
struct tm tmp_tm = {0}; /* initialize to null in case of failure */
|
||||
setlocale(LC_TIME, "C");
|
||||
strptime(line, "%a %b %e %H:%M:%S %Y", &tmp_tm);
|
||||
info->installdate = mktime(&tmp_tm);
|
||||
|
|
|
@ -83,7 +83,7 @@ static int parse_descfile(struct archive *a, pmpkg_t *newpkg)
|
|||
} else if(!strcmp(key, "builddate")) {
|
||||
char first = tolower(ptr[0]);
|
||||
if(first > 'a' && first < 'z') {
|
||||
struct tm tmp_tm = {0}; //initialize to null in case of failure
|
||||
struct tm tmp_tm = {0}; /* initialize to null in case of failure */
|
||||
setlocale(LC_TIME, "C");
|
||||
strptime(ptr, "%a %b %e %H:%M:%S %Y", &tmp_tm);
|
||||
newpkg->builddate = mktime(&tmp_tm);
|
||||
|
|
Loading…
Reference in New Issue