Precise scanning crashes on OSX while compiling corlib. Disabling for now.
[mono.git] / mono / metadata / monosn.c
index aaa51db2f7ffaaa57457f78944ad93b3c5233712..c9114c4744a45d4947cefa9b2f7393611e4d5df5 100644 (file)
@@ -4,7 +4,8 @@
  * Author:
  *   Paolo Molaro (lupus@ximian.com)
  *
- * (C) 2002 Ximian, Inc.
+ * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com)
+ * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
  *
  */
 #include <mono/metadata/class.h>
@@ -70,7 +71,6 @@ show_token (const char *file, int is_assembly, int show_pubkey) {
                guint32 len;
 
                mono_metadata_init ();
-        mono_raw_buffer_init ();
         mono_images_init ();
         mono_assemblies_init ();
         mono_loader_init ();
@@ -82,7 +82,7 @@ show_token (const char *file, int is_assembly, int show_pubkey) {
                }
                pubkey = mono_image_get_public_key (image, &len);
                if (!pubkey) {
-                       printf ("%s does not represent a strongly named assembly\n", image->name);
+                       printf ("%s does not represent a strongly named assembly\n", mono_image_get_name(image));
                        mono_image_close (image);
                        return 2;
                }
@@ -115,7 +115,7 @@ extract_data_to_file (int pubk, const char *assembly, const char *outfile) {
        else
                pubkey = mono_image_get_strong_name (image, &len);
        if (!pubkey) {
-               printf ("%s does not represent a strongly named assembly\n", image->name);
+               printf ("%s does not represent a strongly named assembly\n", mono_image_get_name(image));
                mono_image_close (image);
                return 2;
        }