From 6a45cdd4cc1321567d929f41721792c9e3d38401 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 18 Oct 2008 18:17:19 +0200 Subject: Imported Upstream version 0.7.jit26357da --- secmem/Makefile.am | 4 ++-- secmem/secmem.c | 8 ++++---- secmem/util.h | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'secmem') diff --git a/secmem/Makefile.am b/secmem/Makefile.am index 331530f..dfdbed0 100644 --- a/secmem/Makefile.am +++ b/secmem/Makefile.am @@ -7,12 +7,12 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -# +# # PINENTRY is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA diff --git a/secmem/secmem.c b/secmem/secmem.c index 796108d..fc9ac2f 100644 --- a/secmem/secmem.c +++ b/secmem/secmem.c @@ -58,21 +58,21 @@ typedef union { #define log_error log_info #define log_bug log_fatal -void +void log_info(char *template, ...) { va_list args; - + va_start(args, template); vfprintf(stderr, template, args); va_end(args); } -void +void log_fatal(char *template, ...) { va_list args; - + va_start(args, template); vfprintf(stderr, template, args); va_end(args); diff --git a/secmem/util.h b/secmem/util.h index 7986c99..5d28925 100644 --- a/secmem/util.h +++ b/secmem/util.h @@ -23,18 +23,18 @@ #include #ifndef HAVE_BYTE_TYPEDEF -# undef byte +# undef byte # ifdef __riscos__ /* Norcroft treats char == unsigned char but char* != unsigned char* */ typedef char byte; -# else +# else typedef unsigned char byte; -# endif +# endif # define HAVE_BYTE_TYPEDEF #endif #ifndef HAVE_ULONG_TYPEDEF -# undef ulong +# undef ulong typedef unsigned long ulong; # define HAVE_ULONG_TYPEDEF #endif -- cgit