simplify variable names in read_object_header_privsep_child()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
diff --git a/lib/object.c b/lib/object.c
index c2a0f0c..a15d50d 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -220,14 +220,14 @@ static void
read_object_header_privsep_child(int obj_fd, int imsg_fds[2])
{
const struct got_error *err = NULL;
- struct got_object *child_obj = NULL;
- struct imsgbuf child_ibuf;
+ struct got_object *obj = NULL;
+ struct imsgbuf ibuf;
FILE *f = NULL;
int status = 0;
setproctitle("got: read object header");
close(imsg_fds[0]);
- imsg_init(&child_ibuf, imsg_fds[1]);
+ imsg_init(&ibuf, imsg_fds[1]);
/* revoke access to most system calls */
if (pledge("stdio", NULL) == -1) {
@@ -242,21 +242,21 @@ read_object_header_privsep_child(int obj_fd, int imsg_fds[2])
goto done;
}
- err = read_object_header(&child_obj, f);
+ err = read_object_header(&obj, f);
if (err)
goto done;
- err = got_privsep_send_obj(&child_ibuf, child_obj, 0);
+ err = got_privsep_send_obj(&ibuf, obj, 0);
done:
- if (child_obj)
- got_object_close(child_obj);
+ if (obj)
+ got_object_close(obj);
if (err) {
- got_privsep_send_error(&child_ibuf, err);
+ got_privsep_send_error(&ibuf, err);
status = 1;
}
if (f)
fclose(f);
- imsg_clear(&child_ibuf);
+ imsg_clear(&ibuf);
close(imsg_fds[1]);
_exit(status);
}