Mercurial > masqmail
comparison src/message.c @ 343:9149d893eb52
refactoring: ``insourced'' create_msg_out_list()
The function is only four lines and used only once.
It's simpler to have the four lines just at the actual place.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 03 Sep 2011 18:25:02 +0200 |
parents | 996b53a50f55 |
children | 4c046561582a |
comparison
equal
deleted
inserted
replaced
342:3f1eecd8082d | 343:9149d893eb52 |
---|---|
198 return msgout; | 198 return msgout; |
199 } | 199 } |
200 return NULL; | 200 return NULL; |
201 } | 201 } |
202 | 202 |
203 GList* | |
204 create_msg_out_list(GList * msg_list) | |
205 { | |
206 GList *msgout_list = NULL; | |
207 GList *msg_node; | |
208 | |
209 foreach(msg_list, msg_node) { | |
210 message *msg = (message *) (msg_node->data); | |
211 msgout_list = g_list_append(msgout_list, create_msg_out(msg)); | |
212 } | |
213 return msgout_list; | |
214 } | |
215 | |
216 void | 203 void |
217 destroy_msg_out(msg_out * msgout) | 204 destroy_msg_out(msg_out * msgout) |
218 { | 205 { |
219 if (msgout) { | 206 if (msgout) { |
220 if (msgout->return_path) | 207 if (msgout->return_path) |