diff options
author | Helmut Grohne <helmut@subdivi.de> | 2008-06-21 11:33:06 +0000 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2008-06-21 11:33:06 +0000 |
commit | f481beb2dc4e6db37ea79f32960cbfa4a148eb90 (patch) | |
tree | 9c1f37c19b727d34fd8ab23e6e10b8866d46bb43 /common.c | |
download | munin-plugins-busybox-f481beb2dc4e6db37ea79f32960cbfa4a148eb90.tar.gz |
initial tree
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common.c b/common.c new file mode 100644 index 0000000..3d78e51 --- /dev/null +++ b/common.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +int writeyes(void) { + puts("yes"); + return 0; +} + +int writeno(const char *s) { + if(s) + printf("no (%s)\n", s); + else + puts("no"); + return 1; +} |