projects
/
invirt/packages/python-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the reserved field from prcheckentry, since it doesn't seem to
[invirt/packages/python-afs.git]
/
afs
/
_pts.pyx
diff --git
a/afs/_pts.pyx
b/afs/_pts.pyx
index
db9d546
..
173144c
100644
(file)
--- a/
afs/_pts.pyx
+++ b/
afs/_pts.pyx
@@
-27,7
+27,6
@@
cdef import from "afs/ptuser.h":
afs_int32 creator
afs_int32 ngroups
afs_int32 count
afs_int32 creator
afs_int32 ngroups
afs_int32 count
- afs_int32 reserved[5]
char name[PR_MAXNAMELEN]
int ubik_PR_NameToID(ubik_client *, afs_int32, namelist *, idlist *)
char name[PR_MAXNAMELEN]
int ubik_PR_NameToID(ubik_client *, afs_int32, namelist *, idlist *)
@@
-55,7
+54,6
@@
cdef class PTEntry:
cdef public afs_int32 creator
cdef public afs_int32 ngroups
cdef public afs_int32 count
cdef public afs_int32 creator
cdef public afs_int32 ngroups
cdef public afs_int32 count
- cdef afs_int32 reserved[5]
cdef public char * name
cdef int _ptentry_from_c(PTEntry p_entry, prcheckentry c_entry) except -1:
cdef public char * name
cdef int _ptentry_from_c(PTEntry p_entry, prcheckentry c_entry) except -1:
@@
-69,7
+67,6
@@
cdef int _ptentry_from_c(PTEntry p_entry, prcheckentry c_entry) except -1:
p_entry.creator = c_entry.creator
p_entry.ngroups = c_entry.ngroups
p_entry.count = c_entry.count
p_entry.creator = c_entry.creator
p_entry.ngroups = c_entry.ngroups
p_entry.count = c_entry.count
- memcpy(p_entry.reserved, c_entry.reserved, sizeof(p_entry.reserved))
p_entry.name = c_entry.name
return 0
p_entry.name = c_entry.name
return 0
@@
-84,7
+81,6
@@
cdef int _ptentry_to_c(prcheckentry * c_entry, PTEntry p_entry) except -1:
c_entry.creator = p_entry.creator
c_entry.ngroups = p_entry.ngroups
c_entry.count = p_entry.count
c_entry.creator = p_entry.creator
c_entry.ngroups = p_entry.ngroups
c_entry.count = p_entry.count
- memcpy(c_entry.reserved, p_entry.reserved, sizeof(p_entry.reserved))
strncpy(c_entry.name, p_entry.name, sizeof(c_entry.name))
return 0
strncpy(c_entry.name, p_entry.name, sizeof(c_entry.name))
return 0