Mercurial > masqmail
comparison src/local.c @ 366:41958685480d
Switched to `type *name' style
Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced
me that it is best to go with the way C had been designed.
The ``declaration reflects use'' concept conflicts with a
``type* name'' notation. Hence I switched.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 22 Sep 2011 15:07:40 +0200 |
parents | 63efd381e27b |
children | b27f66555ba8 |
comparison
equal
deleted
inserted
replaced
365:934a223e4ee8 | 366:41958685480d |
---|---|
22 | 22 |
23 #include "masqmail.h" | 23 #include "masqmail.h" |
24 #include "peopen.h" | 24 #include "peopen.h" |
25 | 25 |
26 static void | 26 static void |
27 message_stream(FILE * out, message * msg, GList * hdr_list, guint flags) | 27 message_stream(FILE *out, message *msg, GList *hdr_list, guint flags) |
28 { | 28 { |
29 time_t now = time(NULL); | 29 time_t now = time(NULL); |
30 GList *node; | 30 GList *node; |
31 | 31 |
32 if (flags & MSGSTR_FROMLINE) { | 32 if (flags & MSGSTR_FROMLINE) { |
48 } | 48 } |
49 putc('\n', out); | 49 putc('\n', out); |
50 } | 50 } |
51 | 51 |
52 gboolean | 52 gboolean |
53 append_file(message * msg, GList * hdr_list, gchar * user) | 53 append_file(message *msg, GList *hdr_list, gchar *user) |
54 { | 54 { |
55 struct passwd *pw; | 55 struct passwd *pw; |
56 gboolean ok = FALSE; | 56 gboolean ok = FALSE; |
57 uid_t saved_uid = geteuid(); | 57 uid_t saved_uid = geteuid(); |
58 gid_t saved_gid = getegid(); | 58 gid_t saved_gid = getegid(); |
143 } | 143 } |
144 return ok; | 144 return ok; |
145 } | 145 } |
146 | 146 |
147 gboolean | 147 gboolean |
148 pipe_out(message * msg, GList * hdr_list, address * rcpt, gchar * cmd, guint flags) | 148 pipe_out(message *msg, GList *hdr_list, address *rcpt, gchar *cmd, guint flags) |
149 { | 149 { |
150 gchar *envp[40]; | 150 gchar *envp[40]; |
151 FILE *out; | 151 FILE *out; |
152 uid_t saved_uid = geteuid(); | 152 uid_t saved_uid = geteuid(); |
153 gid_t saved_gid = getegid(); | 153 gid_t saved_gid = getegid(); |