]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* desdata.c: Include config.h, to get definition of UNUSED.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 21 Nov 2002 22:28:14 +0000 (23:28 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 21 Nov 2002 22:28:14 +0000 (23:28 +0100)
* shadata.c: Likewise.

Rev: src/nettle/desdata.c:1.2
Rev: src/nettle/shadata.c:1.2

desdata.c
shadata.c

index c078e86e99fbe832aae225f34226630efe48c2d8..bf37ec18439e2b0daaf95d461c1aecb45cd4be8d 100644 (file)
--- a/desdata.c
+++ b/desdata.c
  *
  */
 
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include       "desinfo.h"
 
 #include       "desCode.h"
 
-#if __GNUC__
-# define UNUSED __attribute__ ((__unused__))
-#else
-# define UNUSED
-#endif
 
 /* list of weak and semi-weak keys
 
index 6934b51a9b81560032ac60b6d52910bd820e51c4..d898c6650c5a98b5e0d7acd3f8a61b28d637eda6 100644 (file)
--- a/shadata.c
+++ b/shadata.c
@@ -1,3 +1,6 @@
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <math.h>
 #include <stdio.h>
@@ -13,7 +16,7 @@ static const unsigned primes[64] =
   283, 293, 307, 311
 };
 
-int main(int argc, char **argv)
+int main(int argc UNUSED, char **argv UNUSED)
 {
   int i;
   static const double third = 1.0/3;