/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-client.c

tally count of used symbols
return codes from functions checked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
#define BUFFER_SIZE 256
68
68
 
69
 
const char *argp_program_version = "plugbasedclient 1.0";
70
 
const char *argp_program_bug_address = "<mandos@fukt.bsnet.se>";
71
 
 
72
69
struct process;
73
70
 
74
71
typedef struct process{
147
144
  return fcntl(fd, F_SETFD, ret | FD_CLOEXEC);
148
145
}
149
146
 
 
147
const char *argp_program_version = "plugbasedclient 0.9";
 
148
const char *argp_program_bug_address = "<mandos@fukt.bsnet.se>";
 
149
 
150
150
process *process_list = NULL;
151
151
 
152
152
/* Mark a process as completed when it exits, and save its exit
292
292
  
293
293
  ret = argp_parse (&argp, argc, argv, 0, 0, &plugin_list);
294
294
  if (ret == ARGP_ERR_UNKNOWN){
295
 
    fprintf(stderr, "Unkown error while parsing arguments\n");
 
295
    perror("argp_parse");
296
296
    exitstatus = EXIT_FAILURE;
297
297
    goto end;
298
298
  }
329
329
    }
330
330
    ret = argp_parse (&argp, new_argc, plus_argv, 0, 0, &plugin_list);
331
331
    if (ret == ARGP_ERR_UNKNOWN){
332
 
      fprintf(stderr, "Unkown error while parsing arguments\n");
 
332
      perror("argp_parse");
333
333
      exitstatus = EXIT_FAILURE;
334
334
      goto end;
335
335
    }