Browse Source

libdpkg: Rename variable r to pid in subproc_fork()

Guillem Jover 15 years ago
parent
commit
b81ec0a39b
1 changed files with 6 additions and 6 deletions
  1. 6 6
      lib/dpkg/subproc.c

+ 6 - 6
lib/dpkg/subproc.c

@@ -80,21 +80,21 @@ print_subproc_error(const char *emsg, const char *contextstring)
 pid_t
 pid_t
 subproc_fork(void)
 subproc_fork(void)
 {
 {
-	pid_t r;
+	pid_t pid;
 
 
-	r = fork();
-	if (r == -1) {
+	pid = fork();
+	if (pid == -1) {
 		onerr_abort++;
 		onerr_abort++;
 		ohshite(_("fork failed"));
 		ohshite(_("fork failed"));
 	}
 	}
-	if (r > 0)
-		return r;
+	if (pid > 0)
+		return pid;
 
 
 	/* Push a new error context, so that we don't do the other cleanups,
 	/* Push a new error context, so that we don't do the other cleanups,
 	 * because they'll be done by/in the parent process. */
 	 * because they'll be done by/in the parent process. */
 	push_error_context_func(catch_fatal_error, print_subproc_error, NULL);
 	push_error_context_func(catch_fatal_error, print_subproc_error, NULL);
 
 
-	return r;
+	return pid;
 }
 }
 
 
 int
 int