aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:51:50 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:51:50 +0100
commitcce63f7d38bd3c275f95d1e527bff09e8c40c681 (patch)
tree95ac65c4404f3e6495b08b6743dbdd95af487251 /FICS
parent159920c385e1281c94d216c7e5ca029cfacd23e9 (diff)
Reformatted mail_string_to_address()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 4fb2a58..98a3167 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -121,26 +121,30 @@ PUBLIC char *nextword(char *str)
return eatwhite(eatword(str));
}
-PUBLIC int mail_string_to_address(char *addr, char *subj, char *str)
+PUBLIC int
+mail_string_to_address(char *addr, char *subj, char *str)
{
- char com[1000];
- FILE *fp;
+ FILE *fp;
+ char com[1000];
#ifdef SENDMAILPROG
- sprintf(com, "%s\n", SENDMAILPROG);
+ sprintf(com, "%s\n", SENDMAILPROG);
#else
- sprintf(com, "%s -s \"%s\" %s", MAILPROGRAM, subj, addr);
+ sprintf(com, "%s -s \"%s\" %s", MAILPROGRAM, subj, addr);
#endif
- fp = popen(com, "w");
- if (!fp)
- return -1;
+
+ fp = popen(com, "w");
+ if (!fp)
+ return -1;
+
#ifdef SENDMAILPROG
- fprintf(fp, "To: %s\nSubject: %s\n%s", addr, subj, str);
+ fprintf(fp, "To: %s\nSubject: %s\n%s", addr, subj, str);
#else
- fprintf(fp, "%s", str);
+ fprintf(fp, "%s", str);
#endif
- pclose(fp);
- return 0;
+
+ pclose(fp);
+ return 0;
}
PUBLIC int