File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ check_pkg_integrity(struct xbps_handle *xhp,
118118
119119#define RUN_PKG_CHECK (x , name , arg ) \
120120do { \
121- if ((rv = check_pkg_##name(x, pkgname, arg)) != 0 ) { \
121+ if (check_pkg_##name(x, pkgname, arg)) { \
122122 errors++; \
123123 } \
124124} while (0)
@@ -135,5 +135,5 @@ do { \
135135
136136#undef RUN_PKG_CHECK
137137
138- return errors ;
138+ return !! errors ;
139139}
Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ main(int argc, char **argv)
183183 } else {
184184 for (i = optind ; i < argc ; i ++ ) {
185185 rv = check_pkg_integrity (& xh , NULL , argv [i ]);
186- if (rv < 0 )
187- xbps_error_printf ( "Failed to check "
188- "`%s': %s \n" , argv [i ], strerror ( - rv ) );
186+ if (rv != 0 )
187+ fprintf ( stderr , "Failed to check "
188+ "`%s'\n" , argv [i ]);
189189 }
190190 }
191191
You can’t perform that action at this time.
0 commit comments