Fixed the ECC interface to Libgcrypt to be ABI compatible with the previous version.
[gnupg.git] / g10 / tdbdump.c
index 5e7b685..b68cde2 100644 (file)
@@ -67,20 +67,23 @@ write_record( TRUSTREC *rec )
 void
 list_trustdb( const char *username )
 {
-    TRUSTREC rec;
-
-    init_trustdb();
-    /* for now we ignore the user ID */
-    if (1) {
-       ulong recnum;
-       int i;
-
-       printf("TrustDB: %s\n", tdbio_get_dbname() );
-       for(i=9+strlen(tdbio_get_dbname()); i > 0; i-- )
-           putchar('-');
-       putchar('\n');
-       for(recnum=0; !tdbio_read_record( recnum, &rec, 0); recnum++ )
-           tdbio_dump_record( &rec, stdout );
+  TRUSTREC rec;
+  
+  (void)username;
+  
+  init_trustdb();
+  /* For now we ignore the user ID. */
+  if (1)
+    {
+      ulong recnum;
+      int i;
+      
+      printf("TrustDB: %s\n", tdbio_get_dbname() );
+      for(i=9+strlen(tdbio_get_dbname()); i > 0; i-- )
+        putchar('-');
+      putchar('\n');
+      for(recnum=0; !tdbio_read_record( recnum, &rec, 0); recnum++ )
+        tdbio_dump_record( &rec, stdout );
     }
 }
 
@@ -143,7 +146,7 @@ import_ownertrust( const char *fname )
     if (is_secured_file (fileno (fp)))
       {
         fclose (fp);
-        errno = EPERM;
+        gpg_err_set_errno (EPERM);
        log_error (_("can't open `%s': %s\n"), fname, strerror(errno) );
        return;
       }