[pacman-dev] [PATCH 1/4] Replace return(0) with return 0

Kerrick Staley mail at kerrickstaley.com
Sun Jun 12 06:20:05 EDT 2011


Per rule 5 in the "Pacman - Contributing" document, return should not be
written as a function call.

Signed-off-by: Kerrick Staley <mail at kerrickstaley.com>
---
 lib/libalpm/db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 3133614..0cc4ff2 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -239,7 +239,7 @@ int SYMEXPORT alpm_db_set_pgp_verify(pmdb_t *db, pgp_verify_t verify)
 	_alpm_log(PM_LOG_DEBUG, "adding VerifySig option to database '%s': %d\n",
 			db->treename, verify);
 
-	return(0);
+	return 0;
 }
 
 /** Get the name of a package database. */
-- 
1.7.5.2



More information about the pacman-dev mailing list