1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00
pacman/lib/libalpm
Dan McGee d896527d21 fgets invocation cleanup
From the fgets manpage:

	fgets() reads in at most one less than size characters from stream and
	stores them into the buffer pointed to by s. Reading stops after an EOF
	or a newline. If a newline is read, it is stored into the buffer. A
	'\0' is stored after the last character in the buffer.

This means there is no need at all to do 'size - 1' math. Remove all of that
and just use sizeof() for simplicity on the buffer we plan on reading into.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-23 21:48:28 -05:00
..
po Small fix to Kazakh translation 2010-07-27 10:14:35 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Check return value of chdir and getcwd 2010-07-01 00:14:59 -05:00
add.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
alpm_list.c alpm_list_diff_sorted - make some arguments const 2010-03-25 21:31:37 -05:00
alpm_list.h alpm_list_diff_sorted - make some arguments const 2010-03-25 21:31:37 -05:00
alpm.c Enable libfetch connection caching 2010-08-23 17:42:22 -05:00
alpm.h Check return value of fwrite when copying files 2010-06-30 23:49:48 -05:00
backup.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
backup.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
be_files.c fgets invocation cleanup 2010-08-23 21:48:28 -05:00
be_package.c Clarify testing within conditional statements 2010-06-21 01:04:58 +10:00
cache.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
cache.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
conflict.c Clarify testing within conditional statements 2010-06-21 01:04:58 +10:00
conflict.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
db.c Introduce -D, --database 2010-05-05 10:37:01 -05:00
db.h Compute package download size outside _alpm_sync_prepare 2010-05-05 18:15:52 -05:00
delta.c More consistent printing of off_t and time_t 2010-03-25 21:58:35 -05:00
delta.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
deps.c Clarify testing within conditional statements 2010-06-21 01:04:58 +10:00
deps.h Partial fix for the phonon/qt issue 2010-05-18 11:33:00 -05:00
dload.c Do not compare signed and unsigned types 2010-06-30 08:32:11 -05:00
dload.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
error.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
graph.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
group.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
group.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
handle.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
handle.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
log.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
log.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
Makefile.am Move vercmp code into a separate file 2010-05-04 23:32:13 -05:00
md5.c Add note about XySSL/PolarSSL name change 2010-06-07 10:35:08 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c libalpm: compare pkgname with strcoll 2010-06-21 01:04:57 +10:00
package.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
remove.c Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
remove.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
sync.c Mark sync_pkg and sync_target as static functions 2010-07-27 10:10:55 -05:00
sync.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
trans.c fgets invocation cleanup 2010-08-23 21:48:28 -05:00
trans.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
util.c Check return value of chdir and getcwd 2010-07-01 00:14:59 -05:00
util.h Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
version.c Remove call to function logger 2010-05-04 23:38:52 -05:00