diff options
author | Roland McGrath <roland@gnu.org> | 1996-04-28 19:23:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-04-28 19:23:12 +0000 |
commit | db04fb4260b06f074f59801064fbf9e787f52f7b (patch) | |
tree | 2f6dada38697dfd09186414f444f1f6c6673887e /libdiskfs/protid-make.c | |
parent | f89dd27b65eb3fe12309c182e784b46df5d0d65b (diff) |
Add obsolescence link warning.
Diffstat (limited to 'libdiskfs/protid-make.c')
-rw-r--r-- | libdiskfs/protid-make.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libdiskfs/protid-make.c b/libdiskfs/protid-make.c index 7843be80..fdf267b4 100644 --- a/libdiskfs/protid-make.c +++ b/libdiskfs/protid-make.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1994, 1995, 1996 Free Software Foundation This program is free software; you can redistribute it and/or @@ -46,17 +46,17 @@ diskfs_finish_protid (struct protid *cred, uid_t *uids, int nuids, nuids = 1; if (!gids) ngids = 1; - + cred->uids = malloc (nuids * sizeof (uid_t)); cred->gids = malloc (ngids * sizeof (uid_t)); cred->nuids = nuids; cred->ngids = ngids; - + if (uids) bcopy (uids, cred->uids, nuids * sizeof (uid_t)); else *cred->uids = 0; - + if (gids) bcopy (gids, cred->gids, ngids * sizeof (uid_t)); else @@ -86,3 +86,6 @@ diskfs_make_protid (struct peropen *po, uid_t *uids, int nuids, cred = 0; return cred; } + +#include "linkwarn.h" +obsolete (diskfs_make_protid, diskfs_create_protid) |