diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-05-11 05:35:56 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-05-12 03:26:49 +0200 |
commit | ed848b1c54e520db760760f1db2e79414cf39bf6 (patch) | |
tree | a63d9683485d34d39ba1098f67e906afe15012a2 /lib/libalpm | |
parent | c27904661ef96cb2e7c729ce82b527146529c768 (diff) | |
download | pacman-ed848b1c54e520db760760f1db2e79414cf39bf6.tar.gz pacman-ed848b1c54e520db760760f1db2e79414cf39bf6.tar.xz |
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>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/be_files.c | 4 | ||||
-rw-r--r-- | lib/libalpm/be_package.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 8ac253ae..9bb7b3dc 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -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); diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index c0ec3bcf..bcb742ca 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -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); |