Skip to content
Browse files

but we do want trailing newline at end of file

git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@330 b0b603af-a30f-0410-a34e-baf09ae79d0b
  • Loading branch information...
1 parent 1ea89bd commit 8bdbe4a39617b4c0dda5bb8d31bacd78e2fe2fe3 @bradfitz bradfitz committed Sep 4, 2006
Showing with 6 additions and 5 deletions.
  1. +1 −1 assoc.c
  2. +1 −1 daemon.c
  3. +1 −0 devtools/clean-whitespace.pl
  4. +1 −1 items.c
  5. +1 −1 memcached.h
  6. +1 −1 slabs.c
View
2 assoc.c
@@ -158,4 +158,4 @@ void assoc_delete(char *key) {
/* Note: we never actually get here. the callers don't delete things
they can't find. */
assert(*before != 0);
-}
+}
View
2 daemon.c
@@ -60,4 +60,4 @@ daemon(nochdir, noclose)
(void)close(fd);
}
return (0);
-}
+}
View
1 devtools/clean-whitespace.pl
@@ -10,6 +10,7 @@
my $after = $before;
$after =~ s/\t/ /g;
$after =~ s/\s+$//mg;
+ $after .= "\n" unless $after =~ /\n$/;
next if $after eq $before;
open(my $fh, ">$f") or die;
print $fh $after;
View
2 items.c
@@ -267,4 +267,4 @@ char* item_stats_sizes(int *bytes) {
*bytes += sprintf(&buf[*bytes], "END\r\n");
free(histogram);
return buf;
-}
+}
View
2 memcached.h
@@ -225,4 +225,4 @@ void item_update(item *it); /* update LRU time to current and reposition */
int item_replace(item *it, item *new_it);
char *item_cachedump(unsigned int slabs_clsid, unsigned int limit, unsigned int *bytes);
char *item_stats_sizes(int *bytes);
-void item_stats(char *buffer, int buflen);
+void item_stats(char *buffer, int buflen);
View
2 slabs.c
@@ -280,4 +280,4 @@ int slabs_reassign(unsigned char srcid, unsigned char dstid) {
}
return 1;
}
-#endif
+#endif

0 comments on commit 8bdbe4a

Please sign in to comment.
Something went wrong with that request. Please try again.