Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2002 13:48:40 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 22078 for review
Message-ID:  <200212082148.gB8Lmeh9063013@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22078

Change 22078 by marcel@marcel_nfs on 2002/12/08 13:47:57

	Change the prototype of main to:
		EFI_STATUS main(int argc, CHAR16 *argv[]);
	
	Add the prototype to efilib.h. That way the compiler will
	complain if main is defined differently. While in efilib.h,
	rename efi_init to efi_main and add a prototype for exit.

Affected files ...

.. //depot/projects/ia64/sys/boot/efi/include/efilib.h#3 edit
.. //depot/projects/ia64/sys/boot/efi/loader/main.c#11 edit

Differences ...

==== //depot/projects/ia64/sys/boot/efi/include/efilib.h#3 (text+ko) ====

@@ -32,4 +32,7 @@
 extern EFI_RUNTIME_SERVICES	*RS;
 
 void *efi_get_table(EFI_GUID *tbl);
-void efi_init(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table);
+void efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table);
+
+EFI_STATUS main(int argc, CHAR16 *argv[]);
+void exit(EFI_STATUS status);

==== //depot/projects/ia64/sys/boot/efi/loader/main.c#11 (text+ko) ====

@@ -99,7 +99,7 @@
 }
 
 EFI_STATUS
-main(int argc, char *argv)
+main(int argc, CHAR16 *argv[])
 {
 	EFI_LOADED_IMAGE *img;
 	EFI_SIMPLE_NETWORK *net;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212082148.gB8Lmeh9063013>