X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=database.c;h=8b22602e03b6a2a60121904a6cf2ae05f2fb22ad;hb=ceba9214d8bebe32d0c34c7a82916bcb9d798d69;hp=2a5ce8be107f8479ec7e07784259f51cf008c35b;hpb=3cea3c8809447c5d6658671b78b9af7137fd9b0d;p=pkg%2Fabook.git diff --git a/database.c b/database.c index 2a5ce8b..8b22602 100644 --- a/database.c +++ b/database.c @@ -136,10 +136,7 @@ load_database(char *filename) parse_database(in); - if ( items == 0 ) - return 2; - - return 0; + return (items == 0) ? 2 : 0; } int