mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
common: Remove superfluous statements.
* common/exechelp-posix.c: Remove weak pragmas. * common/sexputil.c (make_canon_sexp_from_rsa_pk): Remove double const. -- We do not use Pth anymore and thus there is no more need for the weak pragmas.
This commit is contained in:
parent
6e7bcabd78
commit
cad181b5ec
@ -70,15 +70,6 @@
|
|||||||
#include "exechelp.h"
|
#include "exechelp.h"
|
||||||
|
|
||||||
|
|
||||||
/* We have the usual problem here: Some modules are linked against pth
|
|
||||||
and some are not. However we want to use pth_fork and pth_waitpid
|
|
||||||
here. Using a weak symbol works but is not portable - we should
|
|
||||||
provide a an explicit dummy pth module instead of using the
|
|
||||||
pragma. */
|
|
||||||
#pragma weak pth_fork
|
|
||||||
#pragma weak pth_waitpid
|
|
||||||
|
|
||||||
|
|
||||||
/* Return the maximum number of currently allowed open file
|
/* Return the maximum number of currently allowed open file
|
||||||
descriptors. Only useful on POSIX systems but returns a value on
|
descriptors. Only useful on POSIX systems but returns a value on
|
||||||
other systems too. */
|
other systems too. */
|
||||||
|
@ -370,9 +370,9 @@ make_canon_sexp_from_rsa_pk (const void *m_arg, size_t mlen,
|
|||||||
char mlen_str[35];
|
char mlen_str[35];
|
||||||
char elen_str[35];
|
char elen_str[35];
|
||||||
unsigned char *keybuf, *p;
|
unsigned char *keybuf, *p;
|
||||||
const char const part1[] = "(10:public-key(3:rsa(1:n";
|
const char part1[] = "(10:public-key(3:rsa(1:n";
|
||||||
const char const part2[] = ")(1:e";
|
const char part2[] = ")(1:e";
|
||||||
const char const part3[] = ")))";
|
const char part3[] = ")))";
|
||||||
|
|
||||||
/* Remove leading zeroes. */
|
/* Remove leading zeroes. */
|
||||||
for (; mlen && !*m; mlen--, m++)
|
for (; mlen && !*m; mlen--, m++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user