* gpgkeys_ldap.c (get_key): Some compilers (RISC OS, HPUX c89) don't like
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 9 Sep 2002 20:36:12 +0000 (20:36 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 9 Sep 2002 20:36:12 +0000 (20:36 +0000)
using variables as array initializers.

keyserver/ChangeLog
keyserver/gpgkeys_ldap.c

index c39ddf3..f773b46 100644 (file)
@@ -1,5 +1,8 @@
 2002-09-09  David Shaw  <dshaw@jabberwocky.com>
 
+       * gpgkeys_ldap.c (get_key): Some compilers (RISC OS, HPUX c89)
+       don't like using variables as array initializers.
+
        * gpgkeys_hkp.c (send_key): Use CRLF in headers.
 
 2002-08-28  David Shaw  <dshaw@jabberwocky.com>
index 5c4501c..49b2b2e 100644 (file)
@@ -174,16 +174,11 @@ int get_key(char *getkey)
   int ret=-1,err,count;
   struct keylist *dupelist=NULL;
   char search[62];
-#ifndef __riscos__
-  char *attrs[]={pgpkeystr,"pgpuserid","pgpkeyid","pgpcertid","pgprevoked",
+  char *attrs[]={"replaceme","pgpuserid","pgpkeyid","pgpcertid","pgprevoked",
                 "pgpdisabled","pgpkeycreatetime","modifytimestamp",
                 "pgpkeysize","pgpkeytype",NULL};
-#else
-  char *attrs[]={"foobar","pgpuserid","pgpkeyid","pgpcertid","pgprevoked",
-                "pgpdisabled","pgpkeycreatetime","modifytimestamp",
-                "pgpkeysize","pgpkeytype",NULL};
-  attrs[0]=pgpkeystr;
-#endif
+  attrs[0]=pgpkeystr; /* Some compilers don't like using variables as
+                         array initializers. */
 
   /* Build the search string */