aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test.c b/test.c
index b89942a..a2a1a7c 100644
--- a/test.c
+++ b/test.c
@@ -56,9 +56,10 @@ struct f2 f2test(struct f2 *r) {
return *r;
}
-void memset(volatile char *p, int c, unsigned long n)
+void fill(char *p, int c, unsigned long n)
{
- if (n) do *p++ = c; while (--n);
+ int t;
+ if (n) do t = *p++ = c; while (--n);
}