summaryrefslogtreecommitdiffstats
path: root/g10/free-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-02-04 12:57:53 +0100
committerWerner Koch <wk@gnupg.org>2011-02-04 12:57:53 +0100
commitb008274afdbe375b32a7e66dbd073e200f6f0587 (patch)
tree219e239d39cf06be3f03aa82fb572080ac163a15 /g10/free-packet.c
parentLet autogen.sh check the git config (diff)
downloadgnupg2-b008274afdbe375b32a7e66dbd073e200f6f0587.tar.xz
gnupg2-b008274afdbe375b32a7e66dbd073e200f6f0587.zip
Nuked almost all trailing white space.post-nuke-of-trailing-ws
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
Diffstat (limited to 'g10/free-packet.c')
-rw-r--r--g10/free-packet.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/g10/free-packet.c b/g10/free-packet.c
index 3b186561e..267568478 100644
--- a/g10/free-packet.c
+++ b/g10/free-packet.c
@@ -29,7 +29,7 @@
#include "packet.h"
#include "../common/iobuf.h"
#include "cipher.h"
-#include "options.h"
+#include "options.h"
void
@@ -79,7 +79,7 @@ void
release_public_key_parts (PKT_public_key *pk)
{
int n, i;
-
+
if (pk->seckey_info)
n = pubkey_get_nskey (pk->pubkey_algo);
else
@@ -143,7 +143,7 @@ cp_subpktarea (subpktarea_t *s )
}
/*
- * Return a copy of the preferences
+ * Return a copy of the preferences
*/
prefitem_t *
copy_prefs (const prefitem_t *prefs)
@@ -153,7 +153,7 @@ copy_prefs (const prefitem_t *prefs)
if (!prefs)
return NULL;
-
+
for (n=0; prefs[n].type; n++)
;
new = xmalloc ( sizeof (*new) * (n+1));
@@ -175,11 +175,11 @@ PKT_public_key *
copy_public_key (PKT_public_key *d, PKT_public_key *s)
{
int n, i;
-
+
if (!d)
d = xmalloc (sizeof *d);
memcpy (d, s, sizeof *d);
- d->seckey_info = NULL;
+ d->seckey_info = NULL;
d->user_id = scopy_user_id (s->user_id);
d->prefs = copy_prefs (s->prefs);
@@ -187,7 +187,7 @@ copy_public_key (PKT_public_key *d, PKT_public_key *s)
i = 0;
if (!n)
d->pkey[i++] = mpi_copy (s->pkey[0]);
- else
+ else
{
for (; i < n; i++ )
d->pkey[i] = mpi_copy( s->pkey[i] );
@@ -213,7 +213,7 @@ static pka_info_t *
cp_pka_info (const pka_info_t *s)
{
pka_info_t *d = xmalloc (sizeof *s + strlen (s->email));
-
+
d->valid = s->valid;
d->checked = s->checked;
d->uri = s->uri? xstrdup (s->uri):NULL;