aboutsummaryrefslogtreecommitdiff
path: root/src/librc-depend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc-depend.c')
-rw-r--r--src/librc-depend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc-depend.c b/src/librc-depend.c
index 707b954a..e39287be 100644
--- a/src/librc-depend.c
+++ b/src/librc-depend.c
@@ -630,7 +630,7 @@ int rc_update_deptree (bool force)
setenv ("RC_LIBDIR", RC_LIBDIR, 0);
/* Phase 1 */
- if ((fp = popen (GENDEP, "r")) == NULL)
+ if (! (fp = popen (GENDEP, "r")))
eerrorx ("popen: %s", strerror (errno));
deptree = rc_xmalloc (sizeof (rc_depinfo_t));
@@ -809,7 +809,7 @@ int rc_update_deptree (bool force)
This works and should be entirely shell parseable provided that depend
names don't have any non shell variable characters in
*/
- if ((fp = fopen (RC_DEPTREE, "w")) == NULL)
+ if (! (fp = fopen (RC_DEPTREE, "w")))
eerror ("fopen `%s': %s", RC_DEPTREE, strerror (errno));
else
{