diff --git a/README b/README
index 4755dba326d9cb4ddc3861939b20329bbdee934d..d4e61cfd52a5abf570a5cdb1530347bf6ac80266 100644
--- a/README
+++ b/README
@@ -9,7 +9,7 @@ DESCRIPTION
 
 
 REQUIREMENTS
-  
+
   In order to compile and install ncdu, you need to have
   at least...
 
diff --git a/src/exclude.c b/src/exclude.c
index 0b2f538a4e1b12227a725011030bafab0ee2536c..ecf40a82567521a34804ee2a1b0ca41f410879ce 100644
--- a/src/exclude.c
+++ b/src/exclude.c
@@ -1,5 +1,5 @@
-/* ncdu - NCurses Disk Usage 
-    
+/* ncdu - NCurses Disk Usage
+
   Copyright (c) 2007-2012 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
@@ -9,10 +9,10 @@
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:
-  
+
   The above copyright notice and this permission notice shall be included
   in all copies or substantial portions of the Software.
-  
+
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
diff --git a/src/global.h b/src/global.h
index edebb83c2f5f357e1e48ae5e683a54b4622cad0f..ace92cb49b0d1292704881d3d00889417de8df50 100644
--- a/src/global.h
+++ b/src/global.h
@@ -1,5 +1,5 @@
-/* ncdu - NCurses Disk Usage 
-    
+/* ncdu - NCurses Disk Usage
+
   Copyright (c) 2007-2012 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
@@ -9,10 +9,10 @@
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:
-  
+
   The above copyright notice and this permission notice shall be included
   in all copies or substantial portions of the Software.
-  
+
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -63,7 +63,7 @@ struct dir {
   int items;
   unsigned char flags;
   char name[3]; /* must be large enough to hold ".." */
-}; 
+};
 /* sizeof(total dir) = SDIRSIZE + strlen(name) = sizeof(struct dir) - 3 + strlen(name) + 1 */
 #define SDIRSIZE (sizeof(struct dir)-2)
 
diff --git a/src/help.c b/src/help.c
index a7a51b0336bca71b9607fb4c1099ffb6130e8963..e3c3d825ca125ece4fef20ffbbb800bc9cec83aa 100644
--- a/src/help.c
+++ b/src/help.c
@@ -1,5 +1,5 @@
-/* ncdu - NCurses Disk Usage 
-  
+/* ncdu - NCurses Disk Usage
+
   Copyright (c) 2007-2012 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
@@ -9,10 +9,10 @@
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:
-  
+
   The above copyright notice and this permission notice shall be included
   in all copies or substantial portions of the Software.
-  
+
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
diff --git a/src/main.c b/src/main.c
index 7a6f2cfe1c8eada36ec029985ae2658bfacbda2d..4088f59e65d93439a0a7cba69920ed9ec57984fd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,5 @@
-/* ncdu - NCurses Disk Usage 
-    
+/* ncdu - NCurses Disk Usage
+
   Copyright (c) 2007-2012 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
@@ -9,10 +9,10 @@
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:
-  
+
   The above copyright notice and this permission notice shall be included
   in all copies or substantial portions of the Software.
-  
+
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
diff --git a/src/util.c b/src/util.c
index 0cd7fb194812510825b40216b133e4793065d015..b93189850284b1774a10a1ad4419aca9053735a1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,5 +1,5 @@
-/* ncdu - NCurses Disk Usage 
-    
+/* ncdu - NCurses Disk Usage
+
   Copyright (c) 2007-2012 Yoran Heling
 
   Permission is hereby granted, free of charge, to any person obtaining
@@ -9,10 +9,10 @@
   distribute, sublicense, and/or sell copies of the Software, and to
   permit persons to whom the Software is furnished to do so, subject to
   the following conditions:
-  
+
   The above copyright notice and this permission notice shall be included
   in all copies or substantial portions of the Software.
-  
+
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -56,7 +56,7 @@ char *cropstr(const char *from, int s) {
 
 char *formatsize(int64_t from) {
   static char dat[9]; /* "xxx.xMiB" */
-  float r = from; 
+  float r = from;
   char c = ' ';
   if(r < 1000.0f)      { }
   else if(r < 1023e3f) { c = 'K'; r/=1024.0f; }
@@ -111,7 +111,7 @@ int ncresize(int minrows, int mincols) {
       erase();
       refresh();
       endwin();
-      exit(0); 
+      exit(0);
     }
     if(ch == 'i')
       return 1;
@@ -218,7 +218,7 @@ void freedir(struct dir *dr) {
   /* free dr->sub recursively */
   if(dr->sub)
     freedir_rec(dr->sub);
- 
+
   /* update references */
   if(dr->parent && dr->parent->sub == dr)
     dr->parent->sub = dr->next;