summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-02-19 10:59:35 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2014-02-19 10:59:35 +0100
commite1e5b5fd7fc277a355a90ae0840965afdba4b16a (patch)
tree1b9a3b15a6cf591aaa7c0dcdea3f1678e68acd95
parent794df88388d055e8dd9ecac89abca735796b4de4 (diff)
Add some more args and revert division by zero.
-rw-r--r--main_complete.c4
-rw-r--r--main_simple.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/main_complete.c b/main_complete.c
index a79dbc5..a649078 100644
--- a/main_complete.c
+++ b/main_complete.c
@@ -63,8 +63,8 @@ int main(int argc, char *argv[])
INFO(example, "We are up and running");
DEBUG(example, "Or are we %d?", 42);
- int a = 0;
- DEBUG(foo, "Or are we %d?", 1/a);
+
+ DEBUG(foo, "Or are we %d?", 42);
hug_close();
diff --git a/main_simple.c b/main_simple.c
index 07b577d..60d57ac 100644
--- a/main_simple.c
+++ b/main_simple.c
@@ -57,9 +57,11 @@ int main(int argc, char *argv[])
INFO(example, "We are up and running");
- DEBUG(example, "Or are we %d?", 42);
+ DEBUG(example, "Or are we %d %s?", 42, "hello");
- DEBUG(foo, "Or are we %d?", 42);
+ const char bar[] = "bar";
+ (void)bar; // Ignore if compiled with hugin disabled.
+ DEBUG(foo, "Or are we %d %s?", 42, bar);
hug_close();