comparison include/freeDiameter/extension.h @ 994:1e1d6f94cd94

Remove more newlines.
author Thomas Klausner <tk@giga.or.at>
date Mon, 18 Mar 2013 13:22:07 +0100
parents 98f43c0ddfa4
children a89913941dcf
comparison
equal deleted inserted replaced
993:eeb1a46c0e7d 994:1e1d6f94cd94
49 const char *fd_ext_depends[] = { _name , ## _depends , NULL }; \ 49 const char *fd_ext_depends[] = { _name , ## _depends , NULL }; \
50 static int extension_loaded = 0; \ 50 static int extension_loaded = 0; \
51 int fd_ext_init(int major, int minor, char * conffile) { \ 51 int fd_ext_init(int major, int minor, char * conffile) { \
52 if ((major != FD_PROJECT_VERSION_MAJOR) \ 52 if ((major != FD_PROJECT_VERSION_MAJOR) \
53 || (minor != FD_PROJECT_VERSION_MINOR)) { \ 53 || (minor != FD_PROJECT_VERSION_MINOR)) { \
54 TRACE_ERROR("This extension (" _name ") was compiled for a different version of freeDiameter.\n"); \ 54 TRACE_ERROR("This extension (" _name ") was compiled for a different version of freeDiameter."); \
55 TRACE_DEBUG(INFO, "daemon %d.%d != ext %d.%d", \ 55 TRACE_DEBUG(INFO, "daemon %d.%d != ext %d.%d", \
56 major, minor, \ 56 major, minor, \
57 FD_PROJECT_VERSION_MAJOR, FD_PROJECT_VERSION_MINOR); \ 57 FD_PROJECT_VERSION_MAJOR, FD_PROJECT_VERSION_MINOR); \
58 return EINVAL; \ 58 return EINVAL; \
59 } \ 59 } \
60 if (extension_loaded) { \ 60 if (extension_loaded) { \
61 TRACE_ERROR("Extension (" _name ") cannot be loaded twice!\n"); \ 61 TRACE_ERROR("Extension (" _name ") cannot be loaded twice!"); \
62 return ENOTSUP; \ 62 return ENOTSUP; \
63 } \ 63 } \
64 extension_loaded++; \ 64 extension_loaded++; \
65 return (_function)(conffile); \ 65 return (_function)(conffile); \
66 } 66 }
"Welcome to our mercurial repository"