]> arthur.barton.de Git - netatalk.git/commitdiff
Add non const LVALS macro
authorFrank Lahm <franklahm@googlemail.com>
Thu, 20 Sep 2012 09:04:51 +0000 (11:04 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 20 Sep 2012 09:04:51 +0000 (11:04 +0200)
include/atalk/byteorder.h

index 1b8e25cf92c2e8db741a0e422e1d404f65656dea..0ea3972f425a1ca72e2883f6c444ab1a59a623db 100644 (file)
@@ -178,7 +178,7 @@ it also defines lots of intermediate macros, just ignore those :-)
 #define IVALS(buf,pos) (*(const int32_t *)((const char *)(buf) + (pos)))
 #define IVALS_NC(buf,pos) (*(int32_t *)((char *)(buf) + (pos))) /* Non const version of above. */
 #define LVALS(buf,pos) (*(const int64_t *)((const char *)(buf) + (pos)))
-#define LVALS(buf,pos) (*(int64_t *)((char *)(buf) + (pos)))
+#define LVALS_NC(buf,pos) (*(int64_t *)((char *)(buf) + (pos)))
 
 /* store single value in an SMB buffer */
 #define SSVAL(buf,pos,val) SVAL_NC(buf,pos)=((uint16_t)(val))