mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
OpenBSD: Remove macros definitions for afs_osi_Alloc et al.
The afs_osi_Alloc, afs_osi_Free, etc. routines are now defined in afs_osi_alloc.c so the macro definitions defined by osi_machdep.h for OpenBSD are no longer needed and, in fact, interfere with the compile. Remove them. Change-Id: I98a261b5cd5e44136e4dde677f86d90212b0cfba Reviewed-on: http://gerrit.openafs.org/3681 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
26f0ddd0cd
commit
1c74204223
@ -64,11 +64,6 @@ inline void afs_osi_FreeStr(char *x);
|
||||
extern void *osi_obsd_Alloc(size_t asize, int cansleep);
|
||||
extern void osi_obsd_Free(void *p, size_t asize);
|
||||
|
||||
#define afs_osi_Alloc_NoSleep(asize) osi_obsd_Alloc((asize), 0)
|
||||
#define afs_osi_Alloc(asize) osi_obsd_Alloc((asize), 1)
|
||||
#define afs_osi_FreeStr(s) afs_osi_Free((s), strlen((s)) + 1)
|
||||
#define afs_osi_Free(buf, asize) osi_obsd_Free((buf), (asize))
|
||||
|
||||
#ifdef AFS_KALLOC
|
||||
#undef AFS_KALLOC
|
||||
#define AFS_KALLOC(s) osi_obsd_Alloc((s), 1 /* cansleep */)
|
||||
|
Loading…
Reference in New Issue
Block a user