<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>AUTHORS</filename>
    </added>
    <added>
      <filename>ChangeLog</filename>
    </added>
    <added>
      <filename>Makefile.am</filename>
    </added>
    <added>
      <filename>autogen.sh</filename>
    </added>
    <added>
      <filename>configure.ac</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Dependencies:
 
-   -- Judy, http://judy.sf.net/
-   -- libevent, http://www.monkey.org/~provos/libevent/
+   -- Judy, http://judy.sf.net/ (Debian package libjudy-dev)
+   -- libevent, http://www.monkey.org/~provos/libevent/ (libevent-dev)
 
 If using Linux, you need a kernel with epoll.  Sure, libevent will
 work with normal select, but it sucks.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -14,6 +14,7 @@
 #include &lt;unistd.h&gt;
 #include &lt;netinet/in.h&gt;
 #include &lt;errno.h&gt;
+#include &lt;time.h&gt;
 #include &lt;event.h&gt;
 #include &lt;malloc.h&gt;
 #include &lt;Judy.h&gt;
@@ -190,7 +191,7 @@ char *item_cachedump(unsigned int slabs_clsid, unsigned int limit, unsigned int
             break;
         if (!it)
             break;
-        sprintf(temp, &quot;ITEM %s [%u b; %u s]\r\n&quot;, it-&gt;key, it-&gt;nbytes - 2, it-&gt;time);
+        sprintf(temp, &quot;ITEM %s [%u b; %lu s]\r\n&quot;, it-&gt;key, it-&gt;nbytes - 2, it-&gt;time);
         len = strlen(temp);
         if (bufcurr + len +5 &gt; memlimit)  /* 5 is END\r\n */
             break;
@@ -219,7 +220,7 @@ void item_stats(char *buffer, int buflen) {
 
     for (i=0; i&lt;LARGEST_ID; i++) {
         if (tails[i])
-            bufcurr += sprintf(bufcurr, &quot;STAT items:%u:number %u\r\nSTAT items:%u:age %u\r\n&quot;, 
+            bufcurr += sprintf(bufcurr, &quot;STAT items:%u:number %u\r\nSTAT items:%u:age %lu\r\n&quot;, 
                                i, sizes[i], i, now - tails[i]-&gt;time);
     }
     strcpy(bufcurr, &quot;END&quot;);
@@ -237,7 +238,6 @@ char* item_stats_sizes(int *bytes) {
         if (histogram) free(histogram);
         if (buf) free(buf);
         return 0;
-        return;
     }
 
     /* build the histogram */</diff>
      <filename>items.c</filename>
    </modified>
    <modified>
      <diff>@@ -15,6 +15,7 @@
  *  $Id$
  */
 
+#include &quot;config.h&quot;
 #include &lt;sys/types.h&gt;
 #include &lt;sys/stat.h&gt;
 #include &lt;sys/time.h&gt;
@@ -28,7 +29,9 @@
 #include &lt;string.h&gt;
 #include &lt;unistd.h&gt;
 #include &lt;netinet/in.h&gt;
+#include &lt;arpa/inet.h&gt;
 #include &lt;errno.h&gt;
+#include &lt;time.h&gt;
 #include &lt;event.h&gt;
 #include &lt;malloc.h&gt;
 #include &lt;Judy.h&gt;
@@ -293,7 +296,7 @@ void process_stat(conn *c, char *command) {
         char *pos = temp;
 
         pos += sprintf(pos, &quot;STAT pid %u\r\n&quot;, pid);
-        pos += sprintf(pos, &quot;STAT uptime %u\r\n&quot;, now - stats.started);
+        pos += sprintf(pos, &quot;STAT uptime %lu\r\n&quot;, now - stats.started);
         pos += sprintf(pos, &quot;STAT curr_items %u\r\n&quot;, stats.curr_items);
         pos += sprintf(pos, &quot;STAT total_items %u\r\n&quot;, stats.total_items);
         pos += sprintf(pos, &quot;STAT bytes %llu\r\n&quot;, stats.curr_bytes);
@@ -306,7 +309,7 @@ void process_stat(conn *c, char *command) {
         pos += sprintf(pos, &quot;STAT get_misses %u\r\n&quot;, stats.get_misses);
         pos += sprintf(pos, &quot;STAT bytes_read %llu\r\n&quot;, stats.bytes_read);
         pos += sprintf(pos, &quot;STAT bytes_written %llu\r\n&quot;, stats.bytes_written);
-        pos += sprintf(pos, &quot;STAT limit_maxbytes %u\r\n&quot;, settings.maxbytes);
+        pos += sprintf(pos, &quot;STAT limit_maxbytes %llu\r\n&quot;, settings.maxbytes);
         pos += sprintf(pos, &quot;STAT limit_maxitems %u\r\n&quot;, settings.maxitems);
         pos += sprintf(pos, &quot;END&quot;);
         out_string(c, temp);
@@ -447,7 +450,7 @@ void process_command(conn *c, char *command) {
         int len, res;
         item *it;
 
-        res = sscanf(command, &quot;%s %s %u %u %d\n&quot;, s_comm, key, &amp;flags, &amp;expire, &amp;len);
+        res = sscanf(command, &quot;%s %s %u %lu %d\n&quot;, s_comm, key, &amp;flags, &amp;expire, &amp;len);
         if (res!=5 || strlen(key)==0 ) {
             out_string(c, &quot;CLIENT_ERROR bad command line format&quot;);
             return;
@@ -693,7 +696,7 @@ int try_read_network(conn *c) {
 
 int update_event(conn *c, int new_flags) {
     if (c-&gt;ev_flags == new_flags)
-        return;
+        return 0;
     if (event_del(&amp;c-&gt;event) == -1) return 0;
     event_set(&amp;c-&gt;event, c-&gt;sfd, new_flags, event_handler, (void *)c);
     c-&gt;ev_flags = new_flags;
@@ -1061,6 +1064,7 @@ void delete_handler(int fd, short which, void *arg) {
 }
         
 void usage(void) {
+    printf(PACKAGE &quot; &quot; VERSION &quot;.\n&quot;);
     printf(&quot;-p &lt;num&gt;      port number to listen on\n&quot;);
     printf(&quot;-l &lt;ip_addr&gt;  interface to listen on, default is INDRR_ANY\n&quot;);
     printf(&quot;-s &lt;num&gt;      maximum number of items to store, default is unlimited\n&quot;);
@@ -1126,7 +1130,7 @@ int main (int argc, char **argv) {
         }
     }
 
-    /* initialize other stuff stuff */
+    /* initialize other stuff */
     item_init();
     event_init();
     stats_init();
@@ -1139,7 +1143,7 @@ int main (int argc, char **argv) {
         int res;
         res = daemon(0, 0);
         if (res == -1) {
-            fprintf(stderr, &quot;failed to fork() in order to daemonize\n&quot;);
+            fprintf(stderr, &quot;failed to daemon() in order to daemonize\n&quot;);
             return 1;
         }
     }
@@ -1170,6 +1174,6 @@ int main (int argc, char **argv) {
     /* enter the loop */
     event_loop(0);
 
-    return;
+    return 0;
 }
 </diff>
      <filename>memcached.c</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Makefile</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>1422dffad50d7270334466a2c9c75a169f8ce644</id>
    </parent>
  </parents>
  <author>
    <name>Brad Fitzpatrick</name>
    <email>brad@danga.com</email>
  </author>
  <url>http://github.com/tmaesaka/memcached/commit/1b533267341d3735a680ddc443f60bae0e6f4ee3</url>
  <id>1b533267341d3735a680ddc443f60bae0e6f4ee3</id>
  <committed-date>2003-06-13T19:27:53-07:00</committed-date>
  <authored-date>2003-06-13T19:27:53-07:00</authored-date>
  <message>autoconf/automake support from evan


git-svn-id: http://code.sixapart.com/svn/memcached/trunk@20 b0b603af-a30f-0410-a34e-baf09ae79d0b</message>
  <tree>91affcd7218fe08b5839d3b3e9f25db45e9e8094</tree>
  <committer>
    <name>Brad Fitzpatrick</name>
    <email>brad@danga.com</email>
  </committer>
</commit>
