/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 plugins.d/splashy.c

  • Committer: Teddy Hogeborn
  • Date: 2016-02-29 22:51:57 UTC
  • mfrom: (237.4.65 release)
  • Revision ID: teddy@recompile.se-20160229225157-if6c17o8ziwncvro
Merge from release branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*
3
3
 * Splashy - Read a password from splashy and output it
4
4
 * 
5
 
 * Copyright © 2008-2011 Teddy Hogeborn
6
 
 * Copyright © 2008-2011 Björn Påhlsson
 
5
 * Copyright © 2008-2016 Teddy Hogeborn
 
6
 * Copyright © 2008-2016 Björn Påhlsson
7
7
 * 
8
8
 * This program is free software: you can redistribute it and/or
9
9
 * modify it under the terms of the GNU General Public License as
61
61
int signal_received;
62
62
 
63
63
/* Function to use when printing errors */
 
64
__attribute__((format (gnu_printf, 3, 4)))
64
65
void error_plus(int status, int errnum, const char *formatstring,
65
66
                ...){
66
67
  va_list ap;
69
70
  
70
71
  va_start(ap, formatstring);
71
72
  ret = vasprintf(&text, formatstring, ap);
72
 
  if (ret == -1){
 
73
  if(ret == -1){
73
74
    fprintf(stderr, "Mandos plugin %s: ",
74
75
            program_invocation_short_name);
75
76
    vfprintf(stderr, formatstring, ap);