[pacman-dev] [PATCH v3 1/4] Add ALPM_ERR_OK to _alpm_errno_t

Allan McRae allan at archlinux.org
Mon Oct 17 12:17:42 UTC 2016


On 13/10/16 06:13, ivy.foster at gmail.com wrote:
> From: Ivy Foster <ivy.foster at gmail.com>
> 
> This allows functions which return an _alpm_errno_t to always return a
> genuine _alpm_errno_t for consistency, even in cases where there are
> no errors. Since ALPM_ERR_OK = 0, their callers can still simply check
> 'err = some_fn(); if (!err) { ... }'.
> 

Great.

Thanks,
A


More information about the pacman-dev mailing list