qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vl.c && linux-user/main.c : removed **envp from main() arguments
@ 2017-11-21  6:41 Yoni Bettan
  2017-11-21  6:46 ` no-reply
  2017-11-21  7:30 ` Laurent Vivier
  0 siblings, 2 replies; 7+ messages in thread
From: Yoni Bettan @ 2017-11-21  6:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Yoni Bettan, Riku Voipio, Laurent Vivier, Paolo Bonzini

        * it was added on 2008 902b3d5c392bb6f48ef340ad8ecc3311705d2800
          when introduced cache-utils.[ch]
        * since then cache-utils.[ch] were removed but **envp was left
          behind

Signed-off-by: Yoni Bettan <ybettan@redhat.com>
---
 linux-user/main.c | 2 +-
 vl.c              | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/linux-user/main.c b/linux-user/main.c
index aa02f25b85..ca5628c1ca 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -4233,7 +4233,7 @@ static int parse_args(int argc, char **argv)
     return optind;
 }
 
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
 {
     struct target_pt_regs regs1, *regs = &regs1;
     struct image_info info1, *info = &info1;
diff --git a/vl.c b/vl.c
index 1ad1c04637..9667756ccc 100644
--- a/vl.c
+++ b/vl.c
@@ -35,10 +35,10 @@
 #ifdef CONFIG_SDL
 #if defined(__APPLE__) || defined(main)
 #include <SDL.h>
-int qemu_main(int argc, char **argv, char **envp);
+int qemu_main(int argc, char **argv);
 int main(int argc, char **argv)
 {
-    return qemu_main(argc, argv, NULL);
+    return qemu_main(argc, argv);
 }
 #undef main
 #define main qemu_main
@@ -3088,7 +3088,7 @@ static void register_global_properties(MachineState *ms)
     user_register_global_props();
 }
 
-int main(int argc, char **argv, char **envp)
+int main(int argc, char **argv)
 {
     int i;
     int snapshot, linux_boot;
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-18 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21  6:41 [Qemu-devel] [PATCH] vl.c && linux-user/main.c : removed **envp from main() arguments Yoni Bettan
2017-11-21  6:46 ` no-reply
2017-11-21  7:30 ` Laurent Vivier
2017-12-18  6:07   ` Yoni Bettan
2017-12-18  7:52     ` Laurent Vivier
2017-12-18 12:30       ` Peter Maydell
2017-12-18 14:07         ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).