Module Name:    othersrc
Committed By:   lukem
Date:           Sat Jul  4 14:47:35 UTC 2020

Modified Files:
        othersrc/usr.bin/tnftp: tnftp.h

Log Message:
tnftp.h: add __UNVOLATILE. reformat __UNCONST


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 othersrc/usr.bin/tnftp/tnftp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/usr.bin/tnftp/tnftp.h
diff -u othersrc/usr.bin/tnftp/tnftp.h:1.38 othersrc/usr.bin/tnftp/tnftp.h:1.39
--- othersrc/usr.bin/tnftp/tnftp.h:1.38	Sat Jul  4 14:31:04 2020
+++ othersrc/usr.bin/tnftp/tnftp.h	Sat Jul  4 14:47:35 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: tnftp.h,v 1.38 2020/07/04 14:31:04 lukem Exp $	*/
+/*	$NetBSD: tnftp.h,v 1.39 2020/07/04 14:47:35 lukem Exp $	*/
 
 #ifndef TNFTP_H
 #define TNFTP_H 1
@@ -521,6 +521,11 @@ int vasprintf(char **, const char *, va_
 #ifdef __UNCONST
 #undef __UNCONST
 #endif
-#define __UNCONST(a)   ((void *)(unsigned long)(const void *)(a))
+#define __UNCONST(a)	((void *)(unsigned long)(const void *)(a))
+
+#ifdef __UNVOLATILE
+#undef __UNVOLATILE
+#endif
+#define __UNVOLATILE(a)	((void *)(unsigned long)(volatile void *)(a))
 
 #endif /* TNFTP_H */

Reply via email to