summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index cd0c98df..a79e2bb6 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -140,11 +140,12 @@ typedef struct userec_t {
} PACKSTRUCT userec_t;
#ifdef CONST_CUSER
-# define cuser ((const userec_t ) pwcuser)
+// const userec_t cuser;
# define cuser_ref ((const userec_t*)&pwcuser)
+# define cuser (*cuser_ref)
#else
-# define cuser pwcuser
# define cuser_ref (&cuser)
+# define cuser pwcuser
#endif
/* flags in userec_t.withme */