[Mirmince-commits] {tests} branch master updated. 630ac099d45de89001b7f04d2c52f1881c83cd61

tg at freewrt.org tg at freewrt.org
Thu Jan 10 23:59:52 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Supplemental git repository tests for FreeWRT project mirmince".

The branch, master has been updated
       via  630ac099d45de89001b7f04d2c52f1881c83cd61 (commit)
       via  1e301155fffac3bf5cc90b33f4144a7722d11d56 (commit)
      from  e8e2725eff82ffa39643235fc3790b6786fe76d3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 630ac099d45de89001b7f04d2c52f1881c83cd61
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Thu Jan 10 23:59:50 2013 +0000

    a bit more interesting, to test -mregparm=3 -mrtd are working

commit 1e301155fffac3bf5cc90b33f4144a7722d11d56
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Thu Jan 10 23:59:35 2013 +0000

    use -fno-builtin here to prevent GCC from annoying us even more than usual

-----------------------------------------------------------------------

Summary of changes:
 Makefile  |    2 +-
 hw-unix.c |    7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 99cffce..3964601 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ PROGS+=		hw-unix
 CLEANFILES+=	hw-unix.out
 
 CPPFLAGS:=
-CFLAGS:=
+CFLAGS:=	-fno-builtin
 AFLAGS:=
 LDFLAGS:=
 LDADD:=
diff --git a/hw-unix.c b/hw-unix.c
index 0b91152..0a76016 100644
--- a/hw-unix.c
+++ b/hw-unix.c
@@ -1,5 +1,6 @@
 #include <sys/types.h>
 #include <fcntl.h>
+#include <string.h>
 #include <unistd.h>
 
 static const char hw[] = {
@@ -10,7 +11,7 @@ static const char hw[] = {
 static const char fn[] = "hw-unix.out";
 
 int
-main(void)
+main(int argc, char *argv[])
 {
 	int fd;
 
@@ -20,6 +21,10 @@ main(void)
 		close(fd);
 		return (2);
 	}
+	while (argc--) {
+		write(fd, *argv, strlen(*argv) + 1);
+		++argv;
+	}
 	close(fd);
 	write(STDOUT_FILENO, hw, sizeof(hw));
 	return (0);


hooks/post-receive
-- 
Supplemental git repository tests for FreeWRT project mirmince
(FreeWRT project mirmince repository tests)


More information about the Mirmince-commits mailing list