diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 15:10:06 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 15:10:06 +0000 |
commit | d26e4dd74cedbc726f553c6743894b232a8330ba (patch) | |
tree | f0ecbec3cfdbfd48c316277d0c09dbfcedb719b1 | |
parent | 86683bfbefef5da3f8491ad165163363d06fb197 (diff) |
(pager_create): ports_allocate_port -> ports_create_port; if we get an
error return a null structure.
-rw-r--r-- | libpager/pager-create.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpager/pager-create.c b/libpager/pager-create.c index f4bdb8bf..f430cf87 100644 --- a/libpager/pager-create.c +++ b/libpager/pager-create.c @@ -26,7 +26,9 @@ pager_create (struct user_pager_info *upi, { struct pager *p; - p = ports_allocate_port (bucket, sizeof (struct pager), _pager_class); + errno = ports_create_port (_pager_class, bucket, sizeof (struct pager), &p); + if (errno) + return 0; p->upi = upi; p->pager_state = NOTINIT; |