Normalize C source files to end with exactly one newline

Some editors automatically remove trailing blank lines, or
automatically add a trailing newline to avoid having a trailing
non-blank line that is not terminated by a newline. To avoid unrelated
whitespace changes when users of such editors contribute to GLib,
let's pre-emptively normalize all files.

Signed-off-by: Simon McVittie <smcv@collabora.com>
diff --git a/gio/gdbusauthobserver.c b/gio/gdbusauthobserver.c
index be36c9d..f46c7d6 100644
--- a/gio/gdbusauthobserver.c
+++ b/gio/gdbusauthobserver.c
@@ -311,4 +311,3 @@
                  &ret);
   return ret;
 }
-
diff --git a/gio/gfiledescriptorbased.h b/gio/gfiledescriptorbased.h
index 1709c5f..0a2516e 100644
--- a/gio/gfiledescriptorbased.h
+++ b/gio/gfiledescriptorbased.h
@@ -63,4 +63,3 @@
 
 
 #endif /* __G_FILE_DESCRIPTOR_BASED_H__ */
-
diff --git a/gio/gfileenumerator.c b/gio/gfileenumerator.c
index d96a798..ac2e4eb 100644
--- a/gio/gfileenumerator.c
+++ b/gio/gfileenumerator.c
@@ -866,4 +866,3 @@
 
   return g_task_propagate_boolean (G_TASK (result), error);
 }
-
diff --git a/gio/ginetaddress.h b/gio/ginetaddress.h
index 2963aff..87bb4e5 100644
--- a/gio/ginetaddress.h
+++ b/gio/ginetaddress.h
@@ -121,4 +121,3 @@
 G_END_DECLS
 
 #endif /* __G_INET_ADDRESS_H__ */
-
diff --git a/gio/ginetaddressmask.h b/gio/ginetaddressmask.h
index ce5e285..1e73281 100644
--- a/gio/ginetaddressmask.h
+++ b/gio/ginetaddressmask.h
@@ -82,4 +82,3 @@
 G_END_DECLS
 
 #endif /* __G_INET_ADDRESS_MASK_H__ */
-
diff --git a/gio/gio-tool-mkdir.c b/gio/gio-tool-mkdir.c
index 7900704..66bf858 100644
--- a/gio/gio-tool-mkdir.c
+++ b/gio/gio-tool-mkdir.c
@@ -108,4 +108,3 @@
   return retval;
 
 }
-
diff --git a/gio/gio-tool-save.c b/gio/gio-tool-save.c
index ddf085f..4969b8b 100644
--- a/gio/gio-tool-save.c
+++ b/gio/gio-tool-save.c
@@ -200,4 +200,3 @@
 
   return res ? 0 : 2;
 }
-
diff --git a/gio/gio.h b/gio/gio.h
index 3532b73..f5d2dd5 100644
--- a/gio/gio.h
+++ b/gio/gio.h
@@ -175,4 +175,3 @@
 #undef __GIO_GIO_H_INSIDE__
 
 #endif /* __G_IO_H__ */
-
diff --git a/gio/glocalfileinfo.h b/gio/glocalfileinfo.h
index 7a65661..4c58c86 100644
--- a/gio/glocalfileinfo.h
+++ b/gio/glocalfileinfo.h
@@ -94,5 +94,3 @@
 G_END_DECLS
 
 #endif /* __G_FILE_LOCAL_FILE_INFO_H__ */
-
-
diff --git a/gio/gmarshal-internal.c b/gio/gmarshal-internal.c
index f9571c4..6858907 100644
--- a/gio/gmarshal-internal.c
+++ b/gio/gmarshal-internal.c
@@ -2629,4 +2629,3 @@
   if ((param_types[1] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg1 != NULL)
     g_boxed_free (param_types[1] & ~G_SIGNAL_TYPE_STATIC_SCOPE, arg1);
 }
-
diff --git a/gio/gnetworkservice.h b/gio/gnetworkservice.h
index 9cdb4ab..e4d76cb 100644
--- a/gio/gnetworkservice.h
+++ b/gio/gnetworkservice.h
@@ -73,4 +73,3 @@
 G_END_DECLS
 
 #endif /* __G_NETWORK_SERVICE_H__ */
-
diff --git a/gio/gpollableinputstream.h b/gio/gpollableinputstream.h
index ce50312..823c83c 100644
--- a/gio/gpollableinputstream.h
+++ b/gio/gpollableinputstream.h
@@ -102,4 +102,3 @@
 
 
 #endif /* __G_POLLABLE_INPUT_STREAM_H__ */
-
diff --git a/gio/gpollableoutputstream.h b/gio/gpollableoutputstream.h
index c282afd..e27841e 100644
--- a/gio/gpollableoutputstream.h
+++ b/gio/gpollableoutputstream.h
@@ -123,4 +123,3 @@
 
 
 #endif /* __G_POLLABLE_OUTPUT_STREAM_H__ */
-
diff --git a/gio/gproxyresolverportal.h b/gio/gproxyresolverportal.h
index e1eabdb..ae00599 100644
--- a/gio/gproxyresolverportal.h
+++ b/gio/gproxyresolverportal.h
@@ -44,4 +44,3 @@
 G_END_DECLS
 
 #endif /* __G_PROXY_RESOLVER_PORTAL_H__ */
-
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 2a15bdd..aa659f3 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -6137,4 +6137,3 @@
 #endif
   return FALSE;
 }
-
diff --git a/gio/gsrvtarget.h b/gio/gsrvtarget.h
index 3ef16f1..4956915 100644
--- a/gio/gsrvtarget.h
+++ b/gio/gsrvtarget.h
@@ -56,4 +56,3 @@
 G_END_DECLS
 
 #endif /* __G_SRV_TARGET_H__ */
-
diff --git a/gio/kqueue/dep-list.c b/gio/kqueue/dep-list.c
index 3e79765..588cebd 100644
--- a/gio/kqueue/dep-list.c
+++ b/gio/kqueue/dep-list.c
@@ -534,4 +534,3 @@
     dl_shallow_free (pre);
     dl_shallow_free (was);
 }
-
diff --git a/gio/kqueue/kqueue-helper.c b/gio/kqueue/kqueue-helper.c
index 36a5b58..b3e42a2 100644
--- a/gio/kqueue/kqueue-helper.c
+++ b/gio/kqueue/kqueue-helper.c
@@ -194,5 +194,3 @@
 
   dl_free (was);
 }
-
-
diff --git a/gio/tests/appinfo-test.c b/gio/tests/appinfo-test.c
index 3a91a2f..1b64a8f 100644
--- a/gio/tests/appinfo-test.c
+++ b/gio/tests/appinfo-test.c
@@ -26,4 +26,3 @@
 
   return 0;
 }
-
diff --git a/gio/tests/appinfo.c b/gio/tests/appinfo.c
index 4fec6b3..2f0f430 100644
--- a/gio/tests/appinfo.c
+++ b/gio/tests/appinfo.c
@@ -600,4 +600,3 @@
 
   return g_test_run ();
 }
-
diff --git a/gio/tests/gdbus-addresses.c b/gio/tests/gdbus-addresses.c
index 26c21ee..f9b2225 100644
--- a/gio/tests/gdbus-addresses.c
+++ b/gio/tests/gdbus-addresses.c
@@ -221,4 +221,3 @@
 
   return g_test_run();
 }
-
diff --git a/gio/tests/gdbus-auth.c b/gio/tests/gdbus-auth.c
index f44e932..8be4473 100644
--- a/gio/tests/gdbus-auth.c
+++ b/gio/tests/gdbus-auth.c
@@ -310,4 +310,3 @@
 
   return ret;
 }
-
diff --git a/gio/tests/gdbus-message.c b/gio/tests/gdbus-message.c
index 5cb141d..9323574 100644
--- a/gio/tests/gdbus-message.c
+++ b/gio/tests/gdbus-message.c
@@ -223,4 +223,3 @@
 
   return g_test_run ();
 }
-
diff --git a/gio/tests/gdbus-serialization.c b/gio/tests/gdbus-serialization.c
index 2ca28d9..7bc53c6 100644
--- a/gio/tests/gdbus-serialization.c
+++ b/gio/tests/gdbus-serialization.c
@@ -1451,4 +1451,3 @@
 
   return g_test_run();
 }
-
diff --git a/gio/tests/gsocketclient-slow.c b/gio/tests/gsocketclient-slow.c
index 4143bc3..34410f4 100644
--- a/gio/tests/gsocketclient-slow.c
+++ b/gio/tests/gsocketclient-slow.c
@@ -181,4 +181,4 @@
 
 
   return g_test_run ();
-}
\ No newline at end of file
+}
diff --git a/gio/tests/pollable.c b/gio/tests/pollable.c
index b8c8710..6b9d990 100644
--- a/gio/tests/pollable.c
+++ b/gio/tests/pollable.c
@@ -292,4 +292,3 @@
 
   return g_test_run();
 }
-
diff --git a/gio/tests/proxy-test.c b/gio/tests/proxy-test.c
index 8f6dccf..e3c0d09 100644
--- a/gio/tests/proxy-test.c
+++ b/gio/tests/proxy-test.c
@@ -1387,4 +1387,3 @@
 
   return result;
 }
-
diff --git a/gio/tests/resourceplugin.c b/gio/tests/resourceplugin.c
index fc8d8d2..6916c6e 100644
--- a/gio/tests/resourceplugin.c
+++ b/gio/tests/resourceplugin.c
@@ -26,4 +26,3 @@
 {
   return NULL;
 }
-
diff --git a/gio/tests/socket-listener.c b/gio/tests/socket-listener.c
index 31f9446..71e70b2 100644
--- a/gio/tests/socket-listener.c
+++ b/gio/tests/socket-listener.c
@@ -92,4 +92,3 @@
 
   return g_test_run();
 }
-
diff --git a/gio/tests/socket.c b/gio/tests/socket.c
index e095d01..d6eecdc 100644
--- a/gio/tests/socket.c
+++ b/gio/tests/socket.c
@@ -1957,4 +1957,3 @@
 
   return g_test_run();
 }
-
diff --git a/gio/tests/trash.c b/gio/tests/trash.c
index 4bf8fd0..adf729b 100644
--- a/gio/tests/trash.c
+++ b/gio/tests/trash.c
@@ -211,4 +211,3 @@
 
   return g_test_run ();
 }
-
diff --git a/gio/tests/volumemonitor.c b/gio/tests/volumemonitor.c
index 6b61c30..e902eab 100644
--- a/gio/tests/volumemonitor.c
+++ b/gio/tests/volumemonitor.c
@@ -178,4 +178,3 @@
 
   return ret;
 }
-
diff --git a/gio/tests/win32-appinfo.c b/gio/tests/win32-appinfo.c
index 78052c3..fa8aa2a 100644
--- a/gio/tests/win32-appinfo.c
+++ b/gio/tests/win32-appinfo.c
@@ -467,4 +467,3 @@
 
   return g_test_run ();
 }
-
diff --git a/gio/xdgmime/xdgmimeicon.c b/gio/xdgmime/xdgmimeicon.c
index 272b062..a2f4dd2 100644
--- a/gio/xdgmime/xdgmimeicon.c
+++ b/gio/xdgmime/xdgmimeicon.c
@@ -178,4 +178,3 @@
 }
 
 #endif
-
diff --git a/gio/xdgmime/xdgmimeparent.c b/gio/xdgmime/xdgmimeparent.c
index e87bf55..b06b749 100644
--- a/gio/xdgmime/xdgmimeparent.c
+++ b/gio/xdgmime/xdgmimeparent.c
@@ -215,4 +215,3 @@
 }
 
 #endif
-
diff --git a/glib/ggettext.c b/glib/ggettext.c
index b34521f..3853056 100644
--- a/glib/ggettext.c
+++ b/glib/ggettext.c
@@ -635,4 +635,3 @@
  *
  * Since: 2.18
  */
-
diff --git a/glib/glib-private.c b/glib/glib-private.c
index d2aea9f..1c0da19 100644
--- a/glib/glib-private.c
+++ b/glib/glib-private.c
@@ -59,4 +59,3 @@
 
   return &table;
 }
-
diff --git a/glib/gnulib/g-gnulib.h b/glib/gnulib/g-gnulib.h
index 41d414c..b7467b1 100644
--- a/glib/gnulib/g-gnulib.h
+++ b/glib/gnulib/g-gnulib.h
@@ -44,4 +44,3 @@
 
 
 #endif  /* __G_GNULIB_H__ */
-
diff --git a/glib/gnulib/isinf.c b/glib/gnulib/isinf.c
index e7b44b9..7290fb6 100644
--- a/glib/gnulib/isinf.c
+++ b/glib/gnulib/isinf.c
@@ -27,4 +27,4 @@
 gl_isinfl (long double x)
 {
   return gl_isinfd (x);
-}
\ No newline at end of file
+}
diff --git a/glib/gnulib/printf.c b/glib/gnulib/printf.c
index 242740a..c290b15 100644
--- a/glib/gnulib/printf.c
+++ b/glib/gnulib/printf.c
@@ -143,8 +143,3 @@
   
   return length;  
 }
-
-
-
-
-
diff --git a/glib/gnulib/printf.h b/glib/gnulib/printf.h
index ac29be4..b05216b 100644
--- a/glib/gnulib/printf.h
+++ b/glib/gnulib/printf.h
@@ -50,6 +50,3 @@
 
 
 #endif /* __GNULIB_PRINTF_H__ */
-
-
-
diff --git a/glib/gprintfint.h b/glib/gprintfint.h
index 02bd948..9ccf2eb 100644
--- a/glib/gprintfint.h
+++ b/glib/gprintfint.h
@@ -54,4 +54,3 @@
 #endif
 
 #endif /* __G_PRINTF_H__ */
-
diff --git a/glib/gstdio.c b/glib/gstdio.c
index d4a0a69..88d0306 100644
--- a/glib/gstdio.c
+++ b/glib/gstdio.c
@@ -1769,4 +1769,3 @@
     }
   return TRUE;
 }
-
diff --git a/glib/guuid.c b/glib/guuid.c
index 8aa1d00..f26343e 100644
--- a/glib/guuid.c
+++ b/glib/guuid.c
@@ -209,4 +209,3 @@
 
   return g_uuid_to_string (&uuid);
 }
-
diff --git a/glib/tests/array-test.c b/glib/tests/array-test.c
index bdd6a2c..9c275f9 100644
--- a/glib/tests/array-test.c
+++ b/glib/tests/array-test.c
@@ -2031,4 +2031,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/collate.c b/glib/tests/collate.c
index 0c0e1bb..017f247 100644
--- a/glib/tests/collate.c
+++ b/glib/tests/collate.c
@@ -312,4 +312,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/date.c b/glib/tests/date.c
index ff13ad1..159203e 100644
--- a/glib/tests/date.c
+++ b/glib/tests/date.c
@@ -784,5 +784,3 @@
 
   return g_test_run ();
 }
-
-
diff --git a/glib/tests/error.c b/glib/tests/error.c
index ebbd965..44e5015 100644
--- a/glib/tests/error.c
+++ b/glib/tests/error.c
@@ -94,4 +94,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/hook.c b/glib/tests/hook.c
index 5f139a8..711c34e 100644
--- a/glib/tests/hook.c
+++ b/glib/tests/hook.c
@@ -92,4 +92,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/markup-parse.c b/glib/tests/markup-parse.c
index d0f4686..00742d7 100644
--- a/glib/tests/markup-parse.c
+++ b/glib/tests/markup-parse.c
@@ -346,4 +346,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/node.c b/glib/tests/node.c
index db42e8c..a62b95f 100644
--- a/glib/tests/node.c
+++ b/glib/tests/node.c
@@ -513,4 +513,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/pattern.c b/glib/tests/pattern.c
index f3fc21f..2f3f9e8 100644
--- a/glib/tests/pattern.c
+++ b/glib/tests/pattern.c
@@ -238,5 +238,3 @@
 
   return g_test_run ();
 }
-
-
diff --git a/glib/tests/refstring.c b/glib/tests/refstring.c
index 4d58eec..edfadb5 100644
--- a/glib/tests/refstring.c
+++ b/glib/tests/refstring.c
@@ -114,4 +114,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/sequence.c b/glib/tests/sequence.c
index 8e74d09..db7d2a5 100644
--- a/glib/tests/sequence.c
+++ b/glib/tests/sequence.c
@@ -1416,4 +1416,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/sort.c b/glib/tests/sort.c
index 7aa27c8..c2923b9 100644
--- a/glib/tests/sort.c
+++ b/glib/tests/sort.c
@@ -125,4 +125,3 @@
 
   return g_test_run ();
 }
-
diff --git a/glib/tests/tree.c b/glib/tests/tree.c
index a00e9ab..b7c79c4 100644
--- a/glib/tests/tree.c
+++ b/glib/tests/tree.c
@@ -463,4 +463,3 @@
 
   return g_test_run ();
 }
-
diff --git a/gobject/gtype.c b/gobject/gtype.c
index b5ef2d1..8cb9c42 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -4907,4 +4907,3 @@
   if (G_UNLIKELY (type == (GType)-1))
     g_error ("can't happen");
 }
-
diff --git a/tests/assert-msg-test.c b/tests/assert-msg-test.c
index 44f8010..75591c8 100644
--- a/tests/assert-msg-test.c
+++ b/tests/assert-msg-test.c
@@ -5,4 +5,3 @@
     g_assert(42 < 0);
     return 0;
 }
-
diff --git a/tests/dirname-test.c b/tests/dirname-test.c
index d46ef1b..52a4678 100644
--- a/tests/dirname-test.c
+++ b/tests/dirname-test.c
@@ -116,4 +116,3 @@
 
   return 0;
 }
-
diff --git a/tests/gio-test.c b/tests/gio-test.c
index 03472ac..deffa4d 100644
--- a/tests/gio-test.c
+++ b/tests/gio-test.c
@@ -418,4 +418,3 @@
   
   return 0;
 }
-
diff --git a/tests/gobject/testmodule.c b/tests/gobject/testmodule.c
index 60e18f1..3133be1 100644
--- a/tests/gobject/testmodule.c
+++ b/tests/gobject/testmodule.c
@@ -64,4 +64,3 @@
 
   return G_TYPE_MODULE (module);
 }
-
diff --git a/tests/relation-test.c b/tests/relation-test.c
index 4f056aa..67fcb49 100644
--- a/tests/relation-test.c
+++ b/tests/relation-test.c
@@ -134,4 +134,3 @@
 
   return 0;
 }
-
diff --git a/tests/testgdate.c b/tests/testgdate.c
index 9e2ace2..cc1e7a9 100644
--- a/tests/testgdate.c
+++ b/tests/testgdate.c
@@ -509,5 +509,3 @@
 
   return (notpassed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
 }
-
-
diff --git a/tests/testgdateparser.c b/tests/testgdateparser.c
index dea5602..81cbadb 100644
--- a/tests/testgdateparser.c
+++ b/tests/testgdateparser.c
@@ -96,5 +96,3 @@
 
   return 0;
 }
-
-
diff --git a/tests/timeloop-basic.c b/tests/timeloop-basic.c
index d2bc41e..57d7e1f 100644
--- a/tests/timeloop-basic.c
+++ b/tests/timeloop-basic.c
@@ -234,4 +234,3 @@
 
   return 0;
 }
-