summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assoc.c2
-rw-r--r--daemon.c2
-rwxr-xr-xdevtools/clean-whitespace.pl1
-rw-r--r--items.c2
-rw-r--r--memcached.h2
-rw-r--r--slabs.c2
6 files changed, 6 insertions, 5 deletions
diff --git a/assoc.c b/assoc.c
index d344182..4476d2c 100644
--- a/assoc.c
+++ b/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);
-} \ No newline at end of file
+}
diff --git a/daemon.c b/daemon.c
index 84cff4e..a2502e0 100644
--- a/daemon.c
+++ b/daemon.c
@@ -60,4 +60,4 @@ daemon(nochdir, noclose)
(void)close(fd);
}
return (0);
-} \ No newline at end of file
+}
diff --git a/devtools/clean-whitespace.pl b/devtools/clean-whitespace.pl
index ace00b5..bbde48e 100755
--- a/devtools/clean-whitespace.pl
+++ b/devtools/clean-whitespace.pl
@@ -10,6 +10,7 @@ foreach my $f (@files) {
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;
diff --git a/items.c b/items.c
index 996a39b..481764e 100644
--- a/items.c
+++ b/items.c
@@ -267,4 +267,4 @@ char* item_stats_sizes(int *bytes) {
*bytes += sprintf(&buf[*bytes], "END\r\n");
free(histogram);
return buf;
-} \ No newline at end of file
+}
diff --git a/memcached.h b/memcached.h
index 62498e4..2f57a72 100644
--- a/memcached.h
+++ b/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); \ No newline at end of file
+void item_stats(char *buffer, int buflen);
diff --git a/slabs.c b/slabs.c
index 59c9504..9acc2ba 100644
--- a/slabs.c
+++ b/slabs.c
@@ -280,4 +280,4 @@ int slabs_reassign(unsigned char srcid, unsigned char dstid) {
}
return 1;
}
-#endif \ No newline at end of file
+#endif