Révision b95b1672
mnc: add empty handler
| tools/munin-node-c/main.c | ||
|---|---|---|
| 64 | 64 |
arg = strtok(line, " \t\n"); |
| 65 | 65 |
|
| 66 | 66 |
if (!cmd || strlen(cmd) == 0) {
|
| 67 |
printf("# empty cmd\n");
|
|
| 67 | 68 |
} else if (strcmp(cmd, "version") == 0) {
|
| 68 | 69 |
printf("munin c node version: %s\n", VERSION);
|
| 69 | 70 |
} else if (strcmp(cmd, "nodes") == 0) {
|
Formats disponibles : Unified diff