test_probe_xinetd.c | test_probe_xinetd.c | |||
---|---|---|---|---|
#define XINETD_TEST | #define XINETD_TEST | |||
#include <../../../../src/OVAL/probes/unix/xinetd.c> | #include <../../../../src/OVAL/probes/unix/xinetd.c> | |||
#define EMPTYSTR_IF_NULL(val) val ? val : "" | ||||
int main (int argc, char *argv[]) | int main (int argc, char *argv[]) | |||
{ | { | |||
xiconf_t *xcfg; | xiconf_t *xcfg; | |||
xiconf_strans_t *xres; | xiconf_strans_t *xres; | |||
char *path, *serv, *prot; | char *path, *serv, *prot; | |||
if (argc != 4) { | if (argc != 4) { | |||
fprintf(stderr, "Usage: %s <path> <service> <protocol>\n", a rgv[0]); | fprintf(stderr, "Usage: %s <path> <service> <protocol>\n", a rgv[0]); | |||
return (1); | return (1); | |||
skipping to change at line 53 | skipping to change at line 55 | |||
" user: %s\n" | " user: %s\n" | |||
" server: %s\n" | " server: %s\n" | |||
" server_args: %s\n" | " server_args: %s\n" | |||
" only_from: %s\n" | " only_from: %s\n" | |||
" no_access: %s\n" | " no_access: %s\n" | |||
" port: %d\n" | " port: %d\n" | |||
" disable: %d\n" | " disable: %d\n" | |||
" wait: %d\n" | " wait: %d\n" | |||
" def_disabled: %d\n" | " def_disabled: %d\n" | |||
" def_enabled: %d\n", | " def_enabled: %d\n", | |||
xres->srv[l]->id, | EMPTYSTR_IF_NULL(xres->srv[l]->id), | |||
xres->srv[l]->type, | EMPTYSTR_IF_NULL(xres->srv[l]->type), | |||
xres->srv[l]->flags, | EMPTYSTR_IF_NULL(xres->srv[l]->flags), | |||
xres->srv[l]->socket_type, | EMPTYSTR_IF_NULL(xres->srv[l]->socket_type), | |||
xres->srv[l]->name, | EMPTYSTR_IF_NULL(xres->srv[l]->name), | |||
xres->srv[l]->protocol, | EMPTYSTR_IF_NULL(xres->srv[l]->protocol), | |||
xres->srv[l]->user, | EMPTYSTR_IF_NULL(xres->srv[l]->user), | |||
xres->srv[l]->server, | EMPTYSTR_IF_NULL(xres->srv[l]->server), | |||
xres->srv[l]->server_args, | EMPTYSTR_IF_NULL(xres->srv[l]->server_args), | |||
xres->srv[l]->only_from, | EMPTYSTR_IF_NULL(xres->srv[l]->only_from), | |||
xres->srv[l]->no_access, | EMPTYSTR_IF_NULL(xres->srv[l]->no_access), | |||
xres->srv[l]->port, | xres->srv[l]->port, | |||
xres->srv[l]->disable, | xres->srv[l]->disable, | |||
xres->srv[l]->wait, | xres->srv[l]->wait, | |||
xres->srv[l]->def_disabled, | xres->srv[l]->def_disabled, | |||
xres->srv[l]->def_enabled); | xres->srv[l]->def_enabled); | |||
} | } | |||
} | } | |||
return (0); | return (0); | |||
} | } | |||
End of changes. 2 change blocks. | ||||
11 lines changed or deleted | 13 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |