summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
Diffstat (limited to 'pith')
-rw-r--r--pith/ical.c15
-rw-r--r--pith/smime.c14
-rw-r--r--pith/smkeys.c2
3 files changed, 19 insertions, 12 deletions
diff --git a/pith/ical.c b/pith/ical.c
index 59e8c42c..cff1f542 100644
--- a/pith/ical.c
+++ b/pith/ical.c
@@ -299,7 +299,8 @@ ical_remove_escapes(char **textp)
return rv;
}
-void ical_debug(char *fcn, char *text)
+void
+ical_debug(char *fcn, char *text)
{
char piece[50];
strncpy(piece, text, 49);
@@ -477,7 +478,8 @@ ical_free_timezone(void **tzpv)
fs_give(tzpv);
}
-void ical_free_valarm(void **valarmpv)
+void
+ical_free_valarm(void **valarmpv)
{
VALARM_S **valarmp = (VALARM_S **) valarmpv;
int i, j;
@@ -506,7 +508,8 @@ ical_free_unknown_comp(ICAL_S **icalp)
fs_give((void **)icalp);
}
-char *ical_unfold_line(char *line)
+char *
+ical_unfold_line(char *line)
{
int i, j;
@@ -575,7 +578,8 @@ ical_get_parameter(char **line)
return param;
}
-char *ical_get_value(char **line)
+char *
+ical_get_value(char **line)
{
char *s, *t;
@@ -2027,7 +2031,8 @@ ical_first_of_month(int month, int year)
/* given a day, month and year, return the weekday of that day
* return value: on error -1, otherwise the day of the week.
*/
-int ical_day_of_week(struct tm date)
+int
+ical_day_of_week(struct tm date)
{
int d;
diff --git a/pith/smime.c b/pith/smime.c
index 79a980e4..3888db4d 100644
--- a/pith/smime.c
+++ b/pith/smime.c
@@ -1023,7 +1023,8 @@ forget_private_keys(void)
* directory where the .pinerc is located, since according to documentation,
* the .alpine-smime directories are subdirectories of the home directory
*/
-int smime_path(char *rpath, char *fpath, size_t len)
+int
+smime_path(char *rpath, char *fpath, size_t len)
{
*fpath = '\0';
if(rpath && *rpath){
@@ -1234,7 +1235,8 @@ smime_deinit(void)
}
/* we renew the store when it has changed */
-void renew_store(void)
+void
+renew_store(void)
{
if(ps_global->smime->inited){
if(s_cert_store != NULL)
@@ -1277,7 +1279,8 @@ smime_init(void)
/* validate a certificate. Return value : 0 for no error, -1 for error.
* In the latter case, set the openssl smime error in *error.
*/
-int smime_validate_cert(X509 *cert, long *error)
+int
+smime_validate_cert(X509 *cert, long *error)
{
X509_STORE_CTX *csc;
@@ -1431,8 +1434,6 @@ setup_privatekey_storage(void)
setup_certs_backup_by_type(Private);
}
-
-
static void
setup_storage_locations(void)
{
@@ -2731,7 +2732,8 @@ get_pkcs7_from_part(long msgno,const char *section)
return p7;
}
-int same_cert(X509 *x, X509 *cert)
+int
+same_cert(X509 *x, X509 *cert)
{
char bufcert[256], bufx[256];
int rv = 0;
diff --git a/pith/smkeys.c b/pith/smkeys.c
index 25144470..5fd7f97c 100644
--- a/pith/smkeys.c
+++ b/pith/smkeys.c
@@ -807,7 +807,7 @@ get_ca_store(void)
resort_certificates(&ps_global->smime->cacertlist, CACert);
}
- if(!(lookup=X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()))){
+ if(!(lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir()))){
X509_STORE_free(store);
return NULL;
}