diff options
| author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-08-03 09:47:12 +0200 |
|---|---|---|
| committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-08-03 10:40:38 +0200 |
| commit | 042a0db8b705abc0e5a5fec61309a1fe05878931 (patch) | |
| tree | 248fca6e81b4d55a543fabe543aafc6c0c8f7065 /persistent-hello.c | |
| parent | 06c3b46e273598a94480df39d01617c14764ee39 (diff) | |
Refactor and remove unused code
Diffstat (limited to 'persistent-hello.c')
| -rw-r--r-- | persistent-hello.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/persistent-hello.c b/persistent-hello.c index 0efc60f..6274e99 100644 --- a/persistent-hello.c +++ b/persistent-hello.c @@ -302,16 +302,13 @@ main (int argc, char **argv) if (err) error (3, err, "trivfs_startup"); - /* Get reincarnation image. */ - mach_port_t *registered_ports = NULL; - size_t registered_ports_len = 0; - err = mach_ports_lookup (mach_task_self (), - ®istered_ports, ®istered_ports_len); + /* Get reincarnation port. */ + err = reincarnation_get_port (mach_task_self (), + &reincarnation); if (err) - error (5, err, "mach_port_lookup"); - - reincarnation = registered_ports[0]; + error (5, err, "reincarnation_get_port"); + /* Get reincarnation image. */ char *image = NULL; size_t image_len = 0; err = reincarnate (reincarnation, &image, &image_len); |
