From e8f1af39237f0486eea014b44f33eafdcf69ada2 Mon Sep 17 00:00:00 2001 From: Brad Roberts Date: Mon, 1 Oct 2007 14:32:31 +0000 Subject: [PATCH] Partial fixes for building phobos with -unittest. --- std/c/stdlib.d | 4 ++-- unittest.d | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/std/c/stdlib.d b/std/c/stdlib.d index d6a00d583..0122bc007 100644 --- a/std/c/stdlib.d +++ b/std/c/stdlib.d @@ -55,8 +55,8 @@ struct lldiv_t { long quot,rem; } int (*compare)(in void *elem1, in void *elem2)); /// ditto char* getenv(const char*); /// - int setenv(char*, char*, int); /// extension to ISO C standard, not available on all platforms - void unsetenv(char*); /// extension to ISO C standard, not available on all platforms + int setenv(const char*, const char*, int); /// extension to ISO C standard, not available on all platforms + void unsetenv(const char*); /// extension to ISO C standard, not available on all platforms int rand(); /// void srand(uint); /// ditto diff --git a/unittest.d b/unittest.d index 790aa82d1..fcd96483b 100644 --- a/unittest.d +++ b/unittest.d @@ -123,6 +123,6 @@ printf("test2\n"); writefln(std.cpuid.toString()); - printf("Success\n!"); + printf("Success!\n"); return 0; }