aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cddb.c
Commit message (Collapse)AuthorAge
* cddb: avoid calling strlen many times in just a few statements.Gravatar Rogério Brito2011-03-08
| | | | | | | | | | | | | | As strlen is a potentially costly function, it is better if we make a frugal use of it. To really make things cleaner here, we should replace all the `\n` or `\r` with null chars (i.e., `\0`) in just one go. This would reduce the complexity of the code from something quadratic to something linear in the length of the string. While we are at it, `fgets` does not return `EOF` (`fgetc` does, but `fgets` doesn't) when the end of file is reached and nothing can be read: it returns `NULL` instead.
* cddb: Plug some memory leaks.Gravatar Rogério Brito2011-03-08
| | | | | | | | | | Some of these functions are way, way too big and should be split. One obvious low hanging fruit is to use some intelligent goto's to clean up and avoid a bunch of if's in the code, in the very same fashion that is used in the code of the kernel. And, to be honest, using some of the coding style conventions of the kernel here would not hurt at all.
* cddb: Eliminate unused variable.Gravatar Rogério Brito2011-03-08
| | | | | Like this one, the code is full of variables that are defined, but not used and the code can be simplified.
* Remove executable bits from files that are not scripts/executables.Gravatar Rogério Brito2011-03-08
|
* Applied Gentoo cddb patchGravatar Alex Bennee2010-07-14
|
* EasyTag 2.1.6Gravatar Alex Bennee2010-07-14
|
* EasyTag 2.1.5Gravatar Alex Bennee2010-07-14
|
* EasyTag 2.1.4Gravatar Alex Bennee2010-07-14
|
* EasyTag 2.1.3Gravatar Alex Bennee2010-07-14
|
* EasyTag 2.1.2Gravatar Alex Bennee2010-07-14
|
* EasyTag 2.1.1Gravatar Alex Bennee2010-07-14