Changeset 4741bb2c566864b5d85b3216cded4131a1b69a57
- Timestamp:
- 11/30/11 17:49:32
(1 year ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1322675372 -0500
- git-parent:
[7b28cc85a1bc31833aad9c9189e7f8400a6bf16d]
- git-author:
- Igor Galić <i.galic@brainsware.org> 1322675303 -0500
- Message:
compile with GCC 4.6.1
Some of the things you'll see here are ugly. Others I'm really not
proud of. There's really only a handful that are a catch by this
compiler and make actual sense..
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf870be0 |
r4741bb2 |
|
| 185 | 185 | static void eventer_epoll_impl_trigger(eventer_t e, int mask) { |
|---|
| 186 | 186 | struct timeval __now; |
|---|
| 187 | | int fd, oldmask, newmask; |
|---|
| | 187 | int fd, newmask; |
|---|
| 188 | 188 | const char *cbname; |
|---|
| 189 | 189 | ev_lock_state_t lockstate; |
|---|
| … | … | |
| 196 | 196 | |
|---|
| 197 | 197 | gettimeofday(&__now, NULL); |
|---|
| 198 | | oldmask = e->mask; |
|---|
| 199 | 198 | cbname = eventer_name_for_callback(e->callback); |
|---|
| 200 | 199 | noitLT(eventer_deb, &__now, "epoll: fire on %d/%x to %s(%p)\n", |
|---|
| rdfec968 |
r4741bb2 |
|
| 1418 | 1418 | char ip_p[INET6_ADDRSTRLEN]; |
|---|
| 1419 | 1419 | noit_module_t *self = (noit_module_t *)closure; |
|---|
| 1420 | | collectd_mod_config_t *conf; |
|---|
| 1421 | | conf = noit_module_get_userdata(self); |
|---|
| 1422 | | |
|---|
| 1423 | 1420 | |
|---|
| 1424 | 1421 | // Get the username and password of the string |
|---|
| r6033f87 |
r4741bb2 |
|
| 488 | 488 | cleanup: |
|---|
| 489 | 489 | if(pobj) xmlXPathFreeObject(pobj); |
|---|
| | 490 | (void)error; |
|---|
| 490 | 491 | return 0; |
|---|
| 491 | 492 | } |
|---|
| r410716d |
r4741bb2 |
|
| 522 | 522 | noit_console_state_add_cmd(_top_level_state, &console_command_restart); |
|---|
| 523 | 523 | noit_console_state_add_cmd(show_state, &console_command_version); |
|---|
| | 524 | (void)no_state; |
|---|
| 524 | 525 | |
|---|
| 525 | 526 | evdeb = noit_console_mksubdelegate( |
|---|
| rcd621c2 |
r4741bb2 |
|
| 220 | 220 | rv = rename(ls->path, name); |
|---|
| 221 | 221 | if(lock) pthread_rwlock_unlock(lock); |
|---|
| 222 | | return -1; |
|---|
| | 222 | return rv; |
|---|
| 223 | 223 | } |
|---|
| 224 | 224 | static logops_t posix_logio_ops = { |
|---|
| … | … | |
| 441 | 441 | static void |
|---|
| 442 | 442 | noit_log_jlog_err(void *ctx, const char *format, ...) { |
|---|
| 443 | | int rv; |
|---|
| 444 | 443 | struct timeval now; |
|---|
| 445 | 444 | va_list arg; |
|---|
| 446 | 445 | va_start(arg, format); |
|---|
| 447 | 446 | gettimeofday(&now, NULL); |
|---|
| 448 | | rv = noit_vlog(noit_error, &now, "jlog.c", 0, format, arg); |
|---|
| | 447 | (void)noit_vlog(noit_error, &now, "jlog.c", 0, format, arg); |
|---|
| 449 | 448 | va_end(arg); |
|---|
| 450 | 449 | } |
|---|
| r23fef54 |
r4741bb2 |
|
| 110 | 110 | unused = system(cmd); |
|---|
| 111 | 111 | } |
|---|
| | 112 | (void)unused; |
|---|
| 112 | 113 | } |
|---|
| 113 | 114 | |
|---|