<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,7 +39,7 @@
 static char *user = NULL;
 static int detach = 0;
 static int port = 11300;
-static struct in_addr host_addr = { INADDR_ANY };
+static struct in_addr host_addr;
 
 static void
 nullfd(int fd, int flags)
@@ -261,6 +261,8 @@ main(int argc, char **argv)
     struct event_base *ev_base;
     struct job binlog_jobs = {};
 
+    host_addr.s_addr = INADDR_ANY;
+
     progname = argv[0];
     opts(argc, argv);
 </diff>
      <filename>beanstalkd.c</filename>
    </modified>
    <modified>
      <diff>@@ -244,7 +244,7 @@ make_binlog(char *path)
     binlog b;
 
     b = (binlog) malloc(sizeof(struct binlog) + strlen(path) + 1);
-    if (!b) return twarnx(&quot;OOM&quot;), NULL;
+    if (!b) return twarnx(&quot;OOM&quot;), (binlog) 0;
     strcpy(b-&gt;path, path);
     b-&gt;refs = 0;
     b-&gt;next = NULL;
@@ -260,7 +260,7 @@ make_next_binlog()
     if (!binlog_dir) return NULL;
 
     r = snprintf(path, PATH_MAX, &quot;%s/binlog.%d&quot;, binlog_dir, ++binlog_index);
-    if (r &gt; PATH_MAX) return twarnx(&quot;path too long: %s&quot;, binlog_dir), NULL;
+    if (r &gt; PATH_MAX) return twarnx(&quot;path too long: %s&quot;, binlog_dir), (binlog)0;
 
     return make_binlog(path);
 }</diff>
      <filename>binlog.c</filename>
    </modified>
    <modified>
      <diff>@@ -69,12 +69,12 @@ make_conn(int fd, char start_state, tube use, tube watch)
     conn c;
 
     c = conn_alloc();
-    if (!c) return twarn(&quot;OOM&quot;), NULL;
+    if (!c) return twarn(&quot;OOM&quot;), (conn) 0;
 
     ms_init(&amp;c-&gt;watch, (ms_event_fn) on_watch, (ms_event_fn) on_ignore);
     if (!ms_append(&amp;c-&gt;watch, watch)) {
         conn_free(c);
-        return twarn(&quot;OOM&quot;), NULL;
+        return twarn(&quot;OOM&quot;), (conn) 0;
     }
 
     c-&gt;use = NULL; /* initialize */</diff>
      <filename>conn.c</filename>
    </modified>
    <modified>
      <diff>@@ -106,7 +106,7 @@ allocate_job(int body_size)
     job j;
 
     j = malloc(sizeof(struct job) + body_size);
-    if (!j) return twarnx(&quot;OOM&quot;), NULL;
+    if (!j) return twarnx(&quot;OOM&quot;), (job) 0;
 
     j-&gt;id = 0;
     j-&gt;state = JOB_STATE_INVALID;
@@ -130,7 +130,7 @@ make_job_with_id(unsigned int pri, unsigned int delay, unsigned int ttr,
     job j;
 
     j = allocate_job(body_size);
-    if (!j) return twarnx(&quot;OOM&quot;), NULL;
+    if (!j) return twarnx(&quot;OOM&quot;), (job) 0;
 
     if (id) {
         j-&gt;id = id;
@@ -203,7 +203,7 @@ job_copy(job j)
     if (!j) return NULL;
 
     n = malloc(sizeof(struct job) + j-&gt;body_size);
-    if (!n) return twarnx(&quot;OOM&quot;), NULL;
+    if (!n) return twarnx(&quot;OOM&quot;), (job) 0;
 
     memcpy(n, j, sizeof(struct job) + j-&gt;body_size);
     n-&gt;next = n-&gt;prev = n; /* not in a linked list */</diff>
      <filename>job.c</filename>
    </modified>
    <modified>
      <diff>@@ -186,7 +186,7 @@ size_t job_data_size_limit = JOB_DATA_SIZE_LIMIT_DEFAULT;
     &quot;current-workers: %u\n&quot; \
     &quot;current-waiting: %u\n&quot; \
     &quot;total-connections: %u\n&quot; \
-    &quot;pid: %u\n&quot; \
+    &quot;pid: %ld\n&quot; \
     &quot;version: %s\n&quot; \
     &quot;rusage-utime: %d.%06d\n&quot; \
     &quot;rusage-stime: %d.%06d\n&quot; \
@@ -839,7 +839,7 @@ fmt_stats(char *buf, size_t size, void *x)
             count_cur_workers(),
             global_stat.waiting_ct,
             count_tot_conns(),
-            getpid(),
+            (long) getpid(),
             VERSION,
             (int) ru.ru_utime.tv_sec, (int) ru.ru_utime.tv_usec,
             (int) ru.ru_stime.tv_sec, (int) ru.ru_stime.tv_usec,</diff>
      <filename>prot.c</filename>
    </modified>
    <modified>
      <diff>@@ -92,7 +92,7 @@ make_and_insert_tube(const char *name)
     /* We want this global tube list to behave like &quot;weak&quot; refs, so don't
      * increment the ref count. */
     r = ms_append(&amp;tubes, t);
-    if (!r) return tube_dref(t), NULL;
+    if (!r) return tube_dref(t), (tube) 0;
 
     return t;
 }</diff>
      <filename>tube.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>99d11915a28389a1fb2bd9413d9f9b574b6f88ba</id>
    </parent>
  </parents>
  <author>
    <name>Keith Rarick</name>
    <email>kr@xph.us</email>
  </author>
  <url>http://github.com/kr/beanstalkd/commit/9c61ad0f3d9f5f6718bbc09015af385704f6bdd5</url>
  <id>9c61ad0f3d9f5f6718bbc09015af385704f6bdd5</id>
  <committed-date>2009-05-15T16:00:43-07:00</committed-date>
  <authored-date>2009-05-15T16:00:43-07:00</authored-date>
  <message>Fix compiler warnings from gcc 3.4.3 on Solaris.</message>
  <tree>24702f6060f668466e6b842e4e409b88faf4665a</tree>
  <committer>
    <name>Keith Rarick</name>
    <email>kr@xph.us</email>
  </committer>
</commit>
