masqmail
diff src/lookup.c @ 367:b27f66555ba8
Reformated multiline comments to have leading asterisks on each line
Now we use:
/*
** comment
*/
This makes the indent style simpler, too.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 20 Oct 2011 10:20:59 +0200 |
parents | 41958685480d |
children |
line diff
1.1 --- a/src/lookup.c Thu Sep 22 15:07:40 2011 +0200 1.2 +++ b/src/lookup.c Thu Oct 20 10:20:59 2011 +0200 1.3 @@ -1,21 +1,22 @@ 1.4 -/* MasqMail 1.5 - * Copyright (C) Oliver Kurth 1.6 - * Copyright (C) markus schnalke <meillo@marmaro.de> 1.7 - * 1.8 - * This program is free software; you can redistribute it and/or modify 1.9 - * it under the terms of the GNU General Public License as published by 1.10 - * the Free Software Foundation; either version 2 of the License, or 1.11 - * (at your option) any later version. 1.12 - * 1.13 - * This program is distributed in the hope that it will be useful, 1.14 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.15 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.16 - * GNU General Public License for more details. 1.17 - * 1.18 - * You should have received a copy of the GNU General Public License 1.19 - * along with this program; if not, write to the Free Software 1.20 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1.21 - */ 1.22 +/* 1.23 +** MasqMail 1.24 +** Copyright (C) Oliver Kurth 1.25 +** Copyright (C) markus schnalke <meillo@marmaro.de> 1.26 +** 1.27 +** This program is free software; you can redistribute it and/or modify 1.28 +** it under the terms of the GNU General Public License as published by 1.29 +** the Free Software Foundation; either version 2 of the License, or 1.30 +** (at your option) any later version. 1.31 +** 1.32 +** This program is distributed in the hope that it will be useful, 1.33 +** but WITHOUT ANY WARRANTY; without even the implied warranty of 1.34 +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.35 +** GNU General Public License for more details. 1.36 +** 1.37 +** You should have received a copy of the GNU General Public License 1.38 +** along with this program; if not, write to the Free Software 1.39 +** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1.40 +*/ 1.41 1.42 #include <sys/types.h> 1.43 #include <netinet/in.h> 1.44 @@ -64,10 +65,10 @@ 1.45 1.46 if (resp_len <= 0) { 1.47 /* 1.48 - if (errno == ECONNREFUSED) return DNS_SOFT; 1.49 - if (h_errno == TRY_AGAIN) return DNS_SOFT; 1.50 - return DNS_HARD; 1.51 - */ 1.52 + ** if (errno == ECONNREFUSED) return DNS_SOFT; 1.53 + ** if (h_errno == TRY_AGAIN) return DNS_SOFT; 1.54 + ** return DNS_HARD; 1.55 + */ 1.56 return -1; 1.57 } 1.58 if (resp_len >= sizeof(response)) 1.59 @@ -257,10 +258,11 @@ 1.60 1.61 DEBUG(5) debugf("DNS: found %d mx records\n", cnt); 1.62 1.63 - /* to randomize sequences with equal pref values, 1.64 - we temporarily 'misused' the ip field and 1.65 - put a random number in it as a secondary sort key. 1.66 - */ 1.67 + /* 1.68 + ** to randomize sequences with equal pref values, 1.69 + ** we temporarily 'misused' the ip field and 1.70 + ** put a random number in it as a secondary sort key. 1.71 + */ 1.72 list = g_list_sort(list, _mx_sort_func); 1.73 1.74 /* CNAME resolving has to be added as well. */