/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

  • Committer: Teddy Hogeborn
  • Date: 2008-08-10 03:32:42 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080810033242-ea0qikoxqik0nibr
* mandos-client.c (main): Cast pid_t to unsigned int before printing.

* plugins.d/password-request.c (pgp_packet_decrypt): Use "%u" to print
                                                     wrong_key_usage.
  (start_mandos_communication): Use PRIu16 to print uint16_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
606
606
          /* Bad exit by plugin */
607
607
          if(debug){
608
608
            if(WIFEXITED(proc->status)){
609
 
              fprintf(stderr, "Plugin %d exited with status %d\n",
610
 
                      proc->pid, WEXITSTATUS(proc->status));
 
609
              fprintf(stderr, "Plugin %u exited with status %d\n",
 
610
                      (unsigned int) (proc->pid),
 
611
                      WEXITSTATUS(proc->status));
611
612
            } else if(WIFSIGNALED(proc->status)) {
612
 
              fprintf(stderr, "Plugin %d killed by signal %d\n",
613
 
                      proc->pid, WTERMSIG(proc->status));
 
613
              fprintf(stderr, "Plugin %u killed by signal %d\n",
 
614
                      (unsigned int) (proc->pid),
 
615
                      WTERMSIG(proc->status));
614
616
            } else if(WCOREDUMP(proc->status)){
615
 
              fprintf(stderr, "Plugin %d dumped core\n", proc->pid);
 
617
              fprintf(stderr, "Plugin %d dumped core\n",
 
618
                      (unsigned int) (proc->pid));
616
619
            }
617
620
          }
618
621
          /* Remove the plugin */