]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/user_ops.c
The data format used by GenerateRelationshipIndex() is now codified in the headers
[citadel.git] / citadel / server / user_ops.c
index fc21caf462fd63384f716c7f42ce47f06fb07ed3..7b311fcb608cdf1bf017b4c001b44ea7ec9a0548 100644 (file)
@@ -225,17 +225,8 @@ void reindex_user_928(char *username, void *out_data) {
 
 
 // Index-generating function used by Ctdl[Get|Set]Relationship
-int GenerateRelationshipIndex(char *IndexBuf,
-                             long RoomID,
-                             long RoomGen,
-                             long UserID
-) {
-       struct {
-               long iRoomID;
-               long iRoomGen;
-               long iUserID;
-       } TheIndex;
-
+int GenerateRelationshipIndex(char *IndexBuf, long RoomID, long RoomGen, long UserID) {
+       struct visit_index TheIndex;
        TheIndex.iRoomID = RoomID;
        TheIndex.iRoomGen = RoomGen;
        TheIndex.iUserID = UserID;