diff options
author | Werner Koch <[email protected]> | 2006-08-01 12:23:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-08-01 12:23:34 +0000 |
commit | 8c219602515ae1dba5bc0da31077852dab61809e (patch) | |
tree | 49d596d702cfec2b8cc42ccaf8c90c82d5200ac5 /agent/trans.c | |
parent | Forgot this one. (diff) | |
parent | 2006-07-29 Marcus Brinkmann <[email protected]> (diff) | |
download | gnupg-8c219602515ae1dba5bc0da31077852dab61809e.tar.gz gnupg-8c219602515ae1dba5bc0da31077852dab61809e.zip |
Moved 1.9 branch to trunk
Diffstat (limited to '')
-rw-r--r-- | agent/trans.c (renamed from mpi/mpi-inline.c) | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/mpi/mpi-inline.c b/agent/trans.c index 8e29b0615..5eb7d25c0 100644 --- a/mpi/mpi-inline.c +++ b/agent/trans.c @@ -1,5 +1,5 @@ -/* mpi-inline.c - * Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. +/* trans.c - translatable strings + * Copyright (C) 2001 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -19,19 +19,25 @@ * USA. */ +/* To avoid any problems with the gettext implementation (there used + to be some vulnerabilities in the last years and the use of + external files is a minor security problem in itself), we use our + own simple translation stuff */ + #include <config.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> +#include <ctype.h> +#include <assert.h> +#include <unistd.h> +#include <sys/stat.h> -/* put the inline functions as real functions into the lib */ -#define G10_MPI_INLINE_DECL - -#include "mpi-internal.h" - -/* always include the header becuase it is only - * included by mpi-internal if __GCC__ is defined but we - * need it here in all cases and the above definition of - * of the macro allows us to do so - */ -#include "mpi-inline.h" +#include "agent.h" +const char * +trans (const char *text) +{ + return text; +} |