Strip trailing whitespace on all C files
authorDan Nicholson <dbn@endlessos.org>
Tue, 7 Feb 2023 21:48:15 +0000 (14:48 -0700)
committerDan Nicholson <dbn@endlessos.org>
Tue, 7 Feb 2023 21:50:08 +0000 (14:50 -0700)
My editor started following the configuration in .editorconfig and is
applying this rule to many files I'm editing. Let's just get this over
with and strip everything. This was done like so:

  git ls-files | grep '\.[ch]$' | xargs sed -ri 's/\s+$//'

70 files changed:
src/libostree/bupsplit.c
src/libostree/bupsplit.h
src/libostree/ostree-bootconfig-parser.c
src/libostree/ostree-bootloader-uboot.c
src/libostree/ostree-chain-input-stream.c
src/libostree/ostree-checksum-input-stream.c
src/libostree/ostree-cmd-private.c
src/libostree/ostree-content-writer.c
src/libostree/ostree-core-private.h
src/libostree/ostree-dummy-enumtypes.c
src/libostree/ostree-fetcher-soup.c
src/libostree/ostree-fetcher-uri.c
src/libostree/ostree-kernel-args.c
src/libostree/ostree-kernel-args.h
src/libostree/ostree-libarchive-input-stream.c
src/libostree/ostree-lzma-compressor.c
src/libostree/ostree-metalink.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-file-enumerator.c
src/libostree/ostree-repo-file.c
src/libostree/ostree-repo-libarchive.c
src/libostree/ostree-repo-os.c
src/libostree/ostree-repo-os.h
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo-pull-verify.c
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo-static-delta-compilation-analysis.c
src/libostree/ostree-repo-static-delta-private.h
src/libostree/ostree-repo-traverse.c
src/libostree/ostree-repo-verity.c
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/libostree/ostree-rollsum.c
src/libostree/ostree-sepolicy.c
src/libostree/ostree-sign-ed25519.c
src/libostree/ostree-sign.c
src/libostree/ostree-sysroot-cleanup.c
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot.c
src/libostree/ostree-varint.c
src/libotutil/ot-checksum-instream.c
src/libotutil/ot-gio-utils.c
src/libotutil/ot-keyfile-utils.c
src/libotutil/zbase32.c
src/libotutil/zbase32.h
src/ostree/ostree-trivial-httpd.c
src/ostree/ot-admin-builtin-set-origin.c
src/ostree/ot-admin-builtin-status.c
src/ostree/ot-admin-builtin-unlock.c
src/ostree/ot-admin-functions.c
src/ostree/ot-admin-instutil-builtin-grub2-generate.c
src/ostree/ot-admin-instutil-builtin-selinux-ensure-labeled.c
src/ostree/ot-admin-kargs-builtin-edit-in-place.c
src/ostree/ot-builtin-admin.c
src/ostree/ot-builtin-diff.c
src/ostree/ot-builtin-export.c
src/ostree/ot-builtin-fsck.c
src/ostree/ot-builtin-ls.c
src/ostree/ot-builtin-prune.c
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-pull.c
src/ostree/ot-builtin-rev-parse.c
src/ostree/ot-editor.c
src/switchroot/ostree-remount.c
tests/test-basic-c.c
tests/test-commit-sign-sh-ext.c
tests/test-libarchive-import.c
tests/test-pull-c.c
tests/test-repo.c
tests/test-sysroot-c.c

index 79207a65519d8df5f66b21809e067123beb0dcd7..f2de86f30ba011d9cbac447a1a6ba19f41649fe3 100644 (file)
@@ -1,20 +1,20 @@
 /*
  * Copyright 2011 Avery Pennarun. All rights reserved.
- * 
+ *
  * (This license applies to bupsplit.c and bupsplit.h only.)
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
  * met:
- * 
+ *
  *    1. Redistributions of source code must retain the above copyright
  *       notice, this list of conditions and the following disclaimer.
- * 
+ *
  *    2. Redistributions in binary form must reproduce the above copyright
  *       notice, this list of conditions and the following disclaimer in
  *       the documentation and/or other materials provided with the
  *       distribution.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY AVERY PENNARUN ``AS IS'' AND ANY
  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -96,7 +96,7 @@ int bupsplit_find_ofs(const unsigned char *buf, int len, int *bits)
 {
     Rollsum r;
     int count;
-    
+
     rollsum_init(&r);
     for (count = 0; count < len; count++)
     {
index f770ee58c402fa12a9167d6932b6c5c4cc4c5fda..d7710d49a4d3a60fc12daefe559fdf2c8f395409 100644 (file)
@@ -1,20 +1,20 @@
 /*
  * Copyright 2011 Avery Pennarun. All rights reserved.
- * 
+ *
  * (This license applies to bupsplit.c and bupsplit.h only.)
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
  * met:
- * 
+ *
  *    1. Redistributions of source code must retain the above copyright
  *       notice, this list of conditions and the following disclaimer.
- * 
+ *
  *    2. Redistributions in binary form must reproduce the above copyright
  *       notice, this list of conditions and the following disclaimer in
  *       the documentation and/or other materials provided with the
  *       distribution.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY AVERY PENNARUN ``AS IS'' AND ANY
  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -48,5 +48,5 @@ int bupsplit_find_ofs(const unsigned char *buf, int len, int *bits);
 #ifdef __cplusplus
 }
 #endif
-    
+
 #endif /* __BUPSPLIT_H */
index 08259ebf3576025fd8ab251b44763a6ac393df73..365a7bc53c362b54377d6eb2e3e095401e270d0d 100644 (file)
@@ -40,7 +40,7 @@ G_DEFINE_TYPE (OstreeBootconfigParser, ostree_bootconfig_parser, G_TYPE_OBJECT)
 /**
  * ostree_bootconfig_parser_clone:
  * @self: Bootconfig to clone
- * 
+ *
  * Returns: (transfer full): Copy of @self
  */
 OstreeBootconfigParser *
index fb2c2fcfe5dd905dbcd23d672c9ef807b4017918..d0207ad555c5246e1fc1ff729c65a31cc3c19856 100644 (file)
@@ -46,7 +46,7 @@ static gboolean
 _ostree_bootloader_uboot_query (OstreeBootloader *bootloader,
                                 gboolean         *out_is_active,
                                 GCancellable     *cancellable,
-                                GError          **error) 
+                                GError          **error)
 {
   OstreeBootloaderUboot *self = OSTREE_BOOTLOADER_UBOOT (bootloader);
   struct stat stbuf;
index 5ff4392a7f5fdf31469d8a0aeec09132c7259259..22f40227331f4816dfc14683285d1bf82308c6f9 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2011 Colin Walters <walters@verbum.org>
  * Copyright (C) 2022 Igalia S.L.
  *
@@ -87,7 +87,7 @@ ostree_chain_input_stream_set_property (GObject         *object,
                                             GParamSpec      *pspec)
 {
   OstreeChainInputStream *self;
-  
+
   self = OSTREE_CHAIN_INPUT_STREAM (object);
 
   switch (prop_id)
@@ -165,7 +165,7 @@ ostree_chain_input_stream_read (GInputStream  *stream,
 
   if (g_cancellable_set_error_if_cancelled (cancellable, error))
     return -1;
-  
+
   if (self->priv->index >= self->priv->streams->len)
     return 0;
 
index 9747515e89ef1dca2ac1ca498b7a2337cd3adb22..6481bf07d6882e25ca65c7f7a3c8015f5873fcdd 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2011 Colin Walters <walters@verbum.org>
  * Copyright (C) 2022 Igalia S.L.
  *
@@ -80,7 +80,7 @@ ostree_checksum_input_stream_set_property (GObject         *object,
                                             GParamSpec      *pspec)
 {
   OstreeChecksumInputStream *self;
-  
+
   self = OSTREE_CHECKSUM_INPUT_STREAM (object);
 
   switch (prop_id)
index ad820fdeacf9240221a0fe62f9d652e7000a7ef3..173d430e1dbdd71c59594587dc8bb20bff95f178 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "otutil.h"
 
-static gboolean 
+static gboolean
 impl_ostree_generate_grub2_config (OstreeSysroot *sysroot, int bootversion, int target_fd, GCancellable *cancellable, GError **error)
 {
   return _ostree_bootloader_grub2_generate_config (sysroot, bootversion, target_fd, cancellable, error);
index fa4180ac36ff8ef291dc708d4caea67e78dbc8a8..3bc5dd177c0dfd55e85f4d4a21cfdbe121d12d30 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * SPDX-License-Identifier: LGPL-2.0+
  *
  * This library is free software; you can redistribute it and/or
@@ -46,7 +46,7 @@ ostree_content_writer_class_init (OstreeContentWriterClass *klass)
 {
   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
   GOutputStreamClass *stream_class = G_OUTPUT_STREAM_CLASS (klass);
-  
+
   gobject_class->finalize     = ostree_content_writer_finalize;
 
   stream_class->write_fn = ostree_content_writer_write;
index 48b2b8ab307fbcc09ec04e5ee9180cd7897f26cf..cac45f78b90748540649f8d48f5d682faedd0034 100644 (file)
@@ -46,7 +46,7 @@ G_BEGIN_DECLS
 /*
  * File objects are stored as a stream, with one #GVariant header,
  * followed by content.
- * 
+ *
  * The file header is of the following form:
  *
  * &lt;BE guint32 containing variant length&gt;
@@ -54,7 +54,7 @@ G_BEGIN_DECLS
  * u - gid
  * u - mode
  * u - rdev (must be 0)
- * s - symlink target 
+ * s - symlink target
  * a(ayay) - xattrs
  *
  * Then the rest of the stream is data.
@@ -71,7 +71,7 @@ G_BEGIN_DECLS
  * u - gid
  * u - mode
  * u - rdev (must be 0)
- * s - symlink target 
+ * s - symlink target
  * a(ayay) - xattrs
  * ---
  * zlib-compressed data
index b03d61c4fe10e5b5206e4df806776a74ba1d72a5..1967b48971a0ca8e23880ca00a2ff8f4b249faa6 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "ostree-dummy-enumtypes.h"
 
-/* Exported for backwards compat - see 
+/* Exported for backwards compat - see
  * https://bugzilla.gnome.org/show_bug.cgi?id=764131
  */
 GType
index ec1d8e094da8115210c3ae7644221b60b81594f7..53a63f14d64c659631231aff24fa6e4fd7f2b9bc 100644 (file)
@@ -908,7 +908,7 @@ remove_pending (OstreeFetcherPendingURI *pending)
 static void
 on_out_splice_complete (GObject        *object,
                         GAsyncResult   *result,
-                        gpointer        user_data) 
+                        gpointer        user_data)
 {
   GTask *task = G_TASK (user_data);
   OstreeFetcherPendingURI *pending;
@@ -944,7 +944,7 @@ on_out_splice_complete (GObject        *object,
 static void
 on_stream_read (GObject        *object,
                 GAsyncResult   *result,
-                gpointer        user_data) 
+                gpointer        user_data)
 {
   GTask *task = G_TASK (user_data);
   OstreeFetcherPendingURI *pending;
@@ -1055,7 +1055,7 @@ on_stream_read (GObject        *object,
 static void
 on_request_sent (GObject        *object,
                  GAsyncResult   *result,
-                 gpointer        user_data) 
+                 gpointer        user_data)
 {
   GTask *task = G_TASK (user_data);
   /* Hold a ref to the pending across this function, since we remove
@@ -1175,7 +1175,7 @@ on_request_sent (GObject        *object,
     }
 
   pending->state = OSTREE_FETCHER_STATE_DOWNLOADING;
-  
+
   pending->content_length = soup_request_get_content_length (pending->request);
 
   g_input_stream_read_bytes_async (pending->request_body,
index d5ed576d80fd8246e7aa8aba7ba4b3c47b66223b..722aeeebc213e010ca0a81936dd500e7b58c68b1 100644 (file)
@@ -156,7 +156,7 @@ _ostree_fetcher_uri_to_string (OstreeFetcherURI *uri)
  * out invalid input.
  */
 gboolean
-_ostree_fetcher_uri_validate (OstreeFetcherURI *uri, GError **error) 
+_ostree_fetcher_uri_validate (OstreeFetcherURI *uri, GError **error)
 {
   const char *scheme = g_uri_get_scheme ((GUri*)uri);
   // TODO only allow file if explicitly requested by a higher level
index d15d28a73392e646e490ed52c106c579f781b4ab..e0046e0cf2a10f7765ec587f1455873ad7ce15ef 100644 (file)
@@ -823,7 +823,7 @@ ostree_kernel_args_append_if_missing (OstreeKernelArgs  *kargs,
   // Don't insert a duplicate key.
   if (ostree_kernel_args_contains (kargs, arg))
     return;
+
   ostree_kernel_args_append (kargs, arg);
 }
 
index 6a1aaac10c5aa2efdb97f9b3d71e697e3fd6a8e3..915faca22ab1e36727fe417e21ff69f8c3616c00 100644 (file)
@@ -131,7 +131,7 @@ _OSTREE_PUBLIC
 char *ostree_kernel_args_to_string (OstreeKernelArgs *kargs);
 
 _OSTREE_PUBLIC
-void ostree_kernel_args_append_if_missing (OstreeKernelArgs *kargs, 
+void ostree_kernel_args_append_if_missing (OstreeKernelArgs *kargs,
                                            const char *arg);
 
 _OSTREE_PUBLIC
index 3c313c1de588d849be3f4e92a994ace23dda78cc..426db589d843184a9e6efbd366f724b0abf30fec 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2011 Colin Walters <walters@verbum.org>
  * Copyright (C) 2022 Igalia S.L.
  *
@@ -94,7 +94,7 @@ ostree_libarchive_input_stream_set_property (GObject         *object,
                                             GParamSpec      *pspec)
 {
   OstreeLibarchiveInputStream *self;
-  
+
   self = OSTREE_LIBARCHIVE_INPUT_STREAM (object);
 
   switch (prop_id)
index c60e6b715747014b2cc6580b823173b12d6f8c8e..0404d36649e64768983588efdca0561a102da113 100644 (file)
@@ -173,7 +173,7 @@ _ostree_lzma_compressor_convert (GConverter *converter,
 {
   OstreeLzmaCompressor *self = OSTREE_LZMA_COMPRESSOR (converter);
   int res;
-  lzma_action action; 
+  lzma_action action;
 
   if (inbuf_size != 0 && outbuf_size == 0)
     {
index 7178f34f168639479deb9d4f9c466482e6d4432b..d028266f8a761a12efb4bf5ca94b1773dec4e8b0 100644 (file)
@@ -62,7 +62,7 @@ typedef struct
 
   guint passthrough_depth;
   OstreeMetalinkState passthrough_previous;
-  
+
   guint found_a_file_element : 1;
   guint found_our_file_element : 1;
   guint verification_known : 1;
@@ -550,7 +550,7 @@ try_metalink_targets (OstreeMetalinkRequest      *self,
       GError *temp_error = NULL;
 
       target_uri = self->urls->pdata[self->current_url_index];
-      
+
       if (try_one_url (self, target_uri, &ret_data, &temp_error))
         break;
       else
index de79d64aa2df35f584ba56451c2f7aa73cc9b5a4..6328635175b0a4a068ec75e5713525f9e711167c 100644 (file)
@@ -47,7 +47,7 @@
 #endif
 
 /* Understanding ostree's fsync strategy
- * 
+ *
  * A long time ago, ostree used to invoke fsync() on each object,
  * then move it into the objects directory.  However, it turned
  * out to be a *lot* faster to write the objects into a separate "staging"
@@ -2856,7 +2856,7 @@ ostree_repo_write_regfile_inline (OstreeRepo       *self,
  * Returns: (transfer full): Checksum (as a hex string) of the committed file
  * Since: 2021.2
  */
-char *      
+char *
 ostree_repo_write_symlink (OstreeRepo       *self,
                            const char       *expected_checksum,
                            guint32           uid,
@@ -2888,14 +2888,14 @@ ostree_repo_write_symlink (OstreeRepo       *self,
  * @content_len: Expected content length
  * @xattrs: (allow-none): Extended attributes (GVariant type `(ayay)`)
  * @error: Error
- * 
+ *
  * Create an `OstreeContentWriter` that allows streaming output into
  * the repository.
  *
  * Returns: (transfer full): A new writer, or %NULL on error
  * Since: 2021.2
  */
-OstreeContentWriter *    
+OstreeContentWriter *
 ostree_repo_write_regfile (OstreeRepo       *self,
                            const char       *expected_checksum,
                            guint32           uid,
@@ -4402,7 +4402,7 @@ ostree_repo_commit_modifier_set_sepolicy (OstreeRepoCommitModifier
  *
  * Since: 2020.4
  */
-gboolean 
+gboolean
 ostree_repo_commit_modifier_set_sepolicy_from_commit (OstreeRepoCommitModifier              *modifier,
                                                       OstreeRepo                            *repo,
                                                       const char                            *rev,
index a9ff547606d4cc8c332c11c0f4168c7b4208df85..502fe6c42777fa2aecd2413ead429d31562a3394 100644 (file)
@@ -55,7 +55,7 @@ ostree_repo_file_enumerator_dispose (GObject *object)
 
   g_clear_object (&self->dir);
   g_free (self->attributes);
-  
+
   if (G_OBJECT_CLASS (ostree_repo_file_enumerator_parent_class)->dispose)
     G_OBJECT_CLASS (ostree_repo_file_enumerator_parent_class)->dispose (object);
 }
@@ -77,7 +77,7 @@ ostree_repo_file_enumerator_class_init (OstreeRepoFileEnumeratorClass *klass)
 {
   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
   GFileEnumeratorClass *enumerator_class = G_FILE_ENUMERATOR_CLASS (klass);
-  
+
   gobject_class->finalize = ostree_repo_file_enumerator_finalize;
   gobject_class->dispose = ostree_repo_file_enumerator_dispose;
 
@@ -98,7 +98,7 @@ _ostree_repo_file_enumerator_new (OstreeRepoFile       *dir,
                                  GError              **error)
 {
   OstreeRepoFileEnumerator *self;
-  
+
   self = g_object_new (OSTREE_TYPE_REPO_FILE_ENUMERATOR,
                       "container", dir,
                       NULL);
@@ -106,7 +106,7 @@ _ostree_repo_file_enumerator_new (OstreeRepoFile       *dir,
   self->dir = g_object_ref (dir);
   self->attributes = g_strdup (attributes);
   self->flags = flags;
-  
+
   return G_FILE_ENUMERATOR (self);
 }
 
index 3d396ced756e800aa59f13e1db09cd54b796a692..2f086de5607f92335377f08ca003b1c8da5f9ee0 100644 (file)
@@ -131,7 +131,7 @@ ostree_repo_file_new_child (OstreeRepoFile *parent,
 {
   OstreeRepoFile *self;
   size_t len;
-  
+
   self = g_object_new (OSTREE_TYPE_REPO_FILE, NULL);
   self->repo = g_object_ref (parent->repo);
   self->parent = g_object_ref (parent);
@@ -534,7 +534,7 @@ static guint
 ostree_repo_file_hash (GFile *file)
 {
   OstreeRepoFile *self = OSTREE_REPO_FILE (file);
-  
+
   if (self->parent)
     return g_file_hash (self->parent) + g_str_hash (self->name);
   else
@@ -563,7 +563,7 @@ ostree_repo_file_equal (GFile *file1,
 }
 
 static const char *
-match_prefix (const char *path, 
+match_prefix (const char *path,
               const char *prefix)
 {
   int prefix_len;
@@ -571,13 +571,13 @@ match_prefix (const char *path,
   prefix_len = strlen (prefix);
   if (strncmp (path, prefix, prefix_len) != 0)
     return NULL;
-  
+
   /* Handle the case where prefix is the root, so that
    * the IS_DIR_SEPRARATOR check below works */
   if (prefix_len > 0 &&
       G_IS_DIR_SEPARATOR (prefix[prefix_len-1]))
     prefix_len--;
-  
+
   return path + prefix_len;
 }
 
@@ -608,7 +608,7 @@ ostree_repo_file_get_relative_path (GFile *parent,
   parent_path = gs_file_get_path_cached (parent);
   descendant_path = gs_file_get_path_cached (descendant);
   remainder = match_prefix (descendant_path, parent_path);
-  
+
   if (remainder != NULL && G_IS_DIR_SEPARATOR (*remainder))
     return g_strdup (remainder + 1);
   return NULL;
@@ -649,7 +649,7 @@ ostree_repo_file_resolve_relative_path (GFile      *file,
 
   parent = ostree_repo_file_new_child (self, filename);
   g_free (filename);
-    
+
   if (!rest)
     ret = (GFile*)parent;
   else
index 631c6d4b8f58dd28b806117cae893b914ac519c9..89cae2c1135610a9291b2e9a2fa0c6bc728ccd8d 100644 (file)
@@ -1083,7 +1083,7 @@ file_to_archive_entry_common (GFile         *root,
   if (!opts->disable_xattrs)
     {
       int i, n;
-      
+
       n = g_variant_n_children (xattrs);
       for (i = 0; i < n; i++)
         {
@@ -1152,7 +1152,7 @@ write_directory_to_libarchive_recurse (OstreeRepo               *self,
   if (!write_header_free_entry (a, &entry, error))
     goto out;
 
-  dir_enum = g_file_enumerate_children (dir, OSTREE_GIO_FAST_QUERYINFO, 
+  dir_enum = g_file_enumerate_children (dir, OSTREE_GIO_FAST_QUERYINFO,
                                         G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
                                         cancellable, error);
   if (!dir_enum)
index 784e033684a779dffaa904128f7907dd2068c24c..85b3756124f4fea7d9e6fdcfae4436d4d92cb19f 100644 (file)
@@ -41,7 +41,7 @@ gboolean
 ostree_commit_metadata_for_bootable (GFile *root, GVariantDict *dict, GCancellable *cancellable, GError **error)
 {
   g_autoptr(GFile) modules = g_file_resolve_relative_path (root, "usr/lib/modules");
-  g_autoptr(GFileEnumerator) dir_enum 
+  g_autoptr(GFileEnumerator) dir_enum
     = g_file_enumerate_children (modules, OSTREE_GIO_FAST_QUERYINFO,
                                  G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
                                  cancellable, error);
@@ -60,7 +60,7 @@ ostree_commit_metadata_for_bootable (GFile *root, GVariantDict *dict, GCancellab
         break;
       if (g_file_info_get_file_type (child_info) != G_FILE_TYPE_DIRECTORY)
         continue;
-    
+
       g_autoptr(GFile) kernel_path = g_file_resolve_relative_path (child_path, "vmlinuz");
       if (!g_file_query_exists (kernel_path, NULL))
         continue;
index 9019ea59e22ea27dc861a89256410ba6e1ff92f3..30c54c1a48196c24c893a952aaaabe6269168618 100644 (file)
 
 G_BEGIN_DECLS
 
-/** 
+/**
  * OSTREE_METADATA_KEY_BOOTABLE:
  *
  * GVariant type `b`: Set if this commit is intended to be bootable
  * Since: 2021.1
  */
 #define OSTREE_METADATA_KEY_BOOTABLE "ostree.bootable"
-/** 
+/**
  * OSTREE_METADATA_KEY_LINUX:
  *
  * GVariant type `s`: Contains the Linux kernel release (i.e. `uname -r`)
index e53b816342df1f9ca9f2ce0c4f6e92234f4d9f0b..9394c6214a54eed71239c70cb97358e3fe5f49b0 100644 (file)
@@ -365,7 +365,7 @@ ostree_repo_traverse_reachable_refs (OstreeRepo *self,
                                      GCancellable *cancellable,
                                      GError      **error)
 {
-  return traverse_reachable_internal (self, 
+  return traverse_reachable_internal (self,
                                       OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE,
                                       depth, reachable,
                                       cancellable, error);
@@ -439,9 +439,9 @@ ostree_repo_prune (OstreeRepo        *self,
   if (commit_only)
     {
       if (!ostree_repo_list_commit_objects_starting_with (self, "", &objects, cancellable, error))
-        return FALSE; 
+        return FALSE;
     }
-  else 
+  else
     {
       objects = ostree_repo_list_objects_set (self, OSTREE_REPO_LIST_OBJECTS_ALL | OSTREE_REPO_LIST_OBJECTS_NO_PARENTS,
                                           cancellable, error);
@@ -519,11 +519,11 @@ ostree_repo_prune_from_reachable (OstreeRepo        *self,
   g_autoptr(GHashTable) objects = NULL;
   OstreeRepoPruneFlags flags = options->flags;
   gboolean commit_only = (flags & OSTREE_REPO_PRUNE_FLAGS_COMMIT_ONLY) > 0;
-  if (commit_only) 
+  if (commit_only)
     {
       if (!ostree_repo_list_commit_objects_starting_with (self, "", &objects, cancellable, error))
-        return FALSE;  
-    } 
+        return FALSE;
+    }
   else
     {
       objects =
index 8989d663dcce7d90e7c939c8ea1ffd19897eb54b..d38bc9f8135c09bbb05e53897780a87e5f8eb742 100644 (file)
@@ -368,7 +368,7 @@ validate_metadata_size (const char *prefix, GBytes *buf, GError **error)
  * contain at least one valid signature.  If GPG and signapi are
  * both enabled, then both must find at least one valid signature.
  */
-gboolean 
+gboolean
 ostree_repo_signature_verify_commit_data (OstreeRepo    *self,
                                           const char    *remote_name,
                                           GBytes        *commit_data,
index 18bb7fb743219e250aa48883a05173bad87e18d2..dd21e8c842dee08ee6a4a17d8ff196cd370f9d9a 100644 (file)
@@ -4017,7 +4017,7 @@ ostree_repo_pull_with_options (OstreeRepo             *self,
       if (custom_backend)
         {
           g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                       "Cannot fetch via libostree - remote '%s' uses custom backend '%s'", 
+                       "Cannot fetch via libostree - remote '%s' uses custom backend '%s'",
                        pull_data->remote_name, custom_backend);
           goto out;
         }
index f92951ebccfa5c6d868e17ef2a91dbf8b71756ef..ee3103d7711a64764194ee15dc48f4bec7a9c049 100644 (file)
@@ -54,7 +54,7 @@ build_content_sizenames_recurse (OstreeRepo                     *repo,
     {
       OstreeRepoCommitIterResult iterres =
         ostree_repo_commit_traverse_iter_next (iter, cancellable, error);
-          
+
       if (iterres == OSTREE_REPO_COMMIT_ITER_RESULT_ERROR)
         goto out;
       else if (iterres == OSTREE_REPO_COMMIT_ITER_RESULT_END)
@@ -64,7 +64,7 @@ build_content_sizenames_recurse (OstreeRepo                     *repo,
           char *name;
           char *checksum;
           OstreeDeltaContentSizeNames *csizenames;
-            
+
           ostree_repo_commit_traverse_iter_get_file (iter, &name, &checksum);
 
           if (include_only_objects && !g_hash_table_contains (include_only_objects, checksum))
@@ -103,7 +103,7 @@ build_content_sizenames_recurse (OstreeRepo                     *repo,
             OstreeRepoCommitTraverseIter subiter = { 0, };
 
           ostree_repo_commit_traverse_iter_get_dir (iter, &name, &content_checksum, &meta_checksum);
-          
+
           if (!ostree_repo_load_variant (repo, OSTREE_OBJECT_TYPE_DIR_TREE,
                                          content_checksum, &dirtree,
                                          error))
index ccc0ad0c9421a6863b80c1db71c502e4829ac9cf..e1b4de3bd1c3cf77051eaccd7d779c76441d9726 100644 (file)
@@ -88,7 +88,7 @@ G_BEGIN_DECLS
  *
  * The metadata would include things like a version number, as well as
  * extended verification data like a GPG signature.
- * 
+ *
  * The second array is an array of delta objects that should be
  * fetched and applied before this one.  This is a fairly generic
  * recursion mechanism that would potentially allow saving significant
@@ -99,7 +99,7 @@ G_BEGIN_DECLS
  * Finally, we have the fallback array, which is the set of objects to
  * fetch individually - the compiler determined it wasn't worth
  * duplicating the space.
- */ 
+ */
 #define OSTREE_STATIC_DELTA_SUPERBLOCK_FORMAT "(a{sv}tayay" OSTREE_COMMIT_GVARIANT_STRING "aya" OSTREE_STATIC_DELTA_META_ENTRY_FORMAT "a" OSTREE_STATIC_DELTA_FALLBACK_FORMAT ")"
 
 /**
@@ -168,7 +168,7 @@ void _ostree_static_delta_part_execute_async (OstreeRepo      *repo,
 
 gboolean _ostree_static_delta_part_execute_finish (OstreeRepo      *repo,
                                                    GAsyncResult    *result,
-                                                   GError         **error); 
+                                                   GError         **error);
 
 gboolean
 _ostree_static_delta_parse_checksum_array (GVariant      *array,
index 5efed100c58c0b6a65b9aa341b9f6d4548a3dac8..6de36f862a1ce121a4aa20c04b0b69667cb40857 100644 (file)
@@ -124,7 +124,7 @@ ostree_repo_commit_traverse_iter_init_dirtree (OstreeRepoCommitTraverseIter   *i
  * data for that directory.  Similarly, if
  * %OSTREE_REPO_COMMIT_ITER_RESULT_FILE is returned, call
  * ostree_repo_commit_traverse_iter_get_file().
- * 
+ *
  * If %OSTREE_REPO_COMMIT_ITER_RESULT_ERROR is returned, it is a
  * program error to call any further API on @iter except for
  * ostree_repo_commit_traverse_iter_clear().
@@ -195,7 +195,7 @@ ostree_repo_commit_traverse_iter_next (OstreeRepoCommitTraverseIter *iter,
           if (!csum)
             goto out;
           ostree_checksum_inplace_from_bytes (csum, real->checksum_meta);
-          
+
           res = OSTREE_REPO_COMMIT_ITER_RESULT_DIR;
 
           real->idx++;
@@ -203,7 +203,7 @@ ostree_repo_commit_traverse_iter_next (OstreeRepoCommitTraverseIter *iter,
       else
         res = OSTREE_REPO_COMMIT_ITER_RESULT_END;
     }
-  
+
   real->state = res;
  out:
   return res;
@@ -607,7 +607,7 @@ ostree_repo_traverse_commit_with_flags (OstreeRepo                     *repo,
       g_hash_table_add (inout_reachable, g_variant_ref (key));
 
       /* Save time by skipping traversal of non-commit objects */
-      if (!commit_only) 
+      if (!commit_only)
         {
           g_debug ("Traversing commit %s", commit_checksum);
           ostree_cleanup_repo_commit_traverse_iter
@@ -619,7 +619,7 @@ ostree_repo_traverse_commit_with_flags (OstreeRepo                     *repo,
 
           if (!traverse_iter (repo, &iter, key, inout_reachable, inout_parents, ignore_missing_dirs, cancellable, error))
             return FALSE;
-        } 
+        }
 
       gboolean recurse = FALSE;
       if (maxdepth == -1 || maxdepth > 0)
index d25d6934f355193b83a558a30bf377897a2d42ba..403058c06b81db57d39757db2b086c61754a852c 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/fsverity.h>
 #endif
 
-gboolean 
+gboolean
 _ostree_repo_parse_fsverity_config (OstreeRepo *self, GError **error)
 {
   /* Currently experimental */
@@ -51,7 +51,7 @@ _ostree_repo_parse_fsverity_config (OstreeRepo *self, GError **error)
         return glnx_throw (error, "fsverity required, but libostree compiled without support");
     }
   else
-    {  
+    {
       gboolean fsverity_opportunistic = FALSE;
       if (!ot_keyfile_get_boolean_with_default (self->config, fsverity_key, "opportunistic",
                                                 FALSE, &fsverity_opportunistic, error))
@@ -108,7 +108,7 @@ _ostree_tmpf_fsverity_core (GLnxTmpfile *tmpf,
             return glnx_throw_errno_prefix (error, "ioctl(FS_IOC_ENABLE_VERITY)");
         }
     }
-  
+
   if (supported)
     *supported = TRUE;
 #endif
@@ -161,7 +161,7 @@ _ostree_tmpf_fsverity (OstreeRepo  *self,
       g_mutex_unlock (&self->txn_lock);
       return TRUE;
     }
-  
+
   g_mutex_lock (&self->txn_lock);
   self->fs_verity_supported = _OSTREE_FEATURE_YES;
   g_mutex_unlock (&self->txn_lock);
index f3a3e039c681fb030c28509fa75e8f072f63734f..607ac864702662c1d39898ae621331989a3d894a 100644 (file)
@@ -1413,8 +1413,8 @@ ostree_repo_init (OstreeRepo *self)
   self->remotes = g_hash_table_new_full (g_str_hash, g_str_equal,
                                          (GDestroyNotify) NULL,
                                          (GDestroyNotify) ostree_remote_unref);
-  self->bls_append_values = g_hash_table_new_full (g_str_hash, g_str_equal, 
-                                                   (GDestroyNotify) g_free, 
+  self->bls_append_values = g_hash_table_new_full (g_str_hash, g_str_equal,
+                                                   (GDestroyNotify) g_free,
                                                    (GDestroyNotify) g_free);
   g_mutex_init (&self->remotes_lock);
 
@@ -3363,7 +3363,7 @@ reload_core_config (OstreeRepo          *self,
 
   if (!_ostree_repo_parse_fsverity_config (self, error))
     return FALSE;
-  
+
   {
     g_clear_pointer (&self->collection_id, g_free);
     if (!ot_keyfile_get_value_with_default (self->config, "core", "collection-id",
@@ -3525,16 +3525,16 @@ reload_sysroot_config (OstreeRepo          *self,
           valid_bootloader = TRUE;
         }
     }
-  if (!valid_bootloader) 
+  if (!valid_bootloader)
   {
     return glnx_throw (error, "Invalid bootloader configuration: '%s'", bootloader);
   }
   /* Parse bls-append-except-default string list. */
   g_auto(GStrv) read_values = NULL;
-  if (!ot_keyfile_get_string_list_with_default (self->config, "sysroot", "bls-append-except-default", 
+  if (!ot_keyfile_get_string_list_with_default (self->config, "sysroot", "bls-append-except-default",
                                                 ';', NULL, &read_values, error))
       return glnx_throw(error, "Unable to parse bls-append-except-default");
-    
+
   /* get all key value pairs in bls-append-except-default */
   g_hash_table_remove_all (self->bls_append_values);
   for (char **iter = read_values; iter && *iter; iter++)
@@ -3548,7 +3548,7 @@ reload_sysroot_config (OstreeRepo          *self,
         }
       char *key = g_strndup (key_value, sep - key_value);
       char *value = g_strdup (sep + 1);
-      g_hash_table_replace (self->bls_append_values, key, value); 
+      g_hash_table_replace (self->bls_append_values, key, value);
     }
 
   return TRUE;
@@ -4383,7 +4383,7 @@ _ostree_repo_load_file_bare (OstreeRepo         *self,
         {
           if (self->disable_xattrs)
             ret_xattrs = g_variant_ref_sink (g_variant_new_array (G_VARIANT_TYPE ("(ayay)"), NULL, 0));
-          else 
+          else
             {
               ret_xattrs = ostree_fs_get_all_xattrs (fd, cancellable, error);
               if (!ret_xattrs)
index ce9b2507b6b994247c785ccb4a0912afc620b36a..57b40a6bbc15d66c19f40a1de1d850f3862c5e80 100644 (file)
@@ -442,7 +442,7 @@ OstreeContentWriter *    ostree_repo_write_regfile (OstreeRepo       *self,
                                                     guint64           content_len,
                                                     GVariant         *xattrs,
                                                     GError          **error);
-             
+
 _OSTREE_PUBLIC
 char *      ostree_repo_write_symlink (OstreeRepo       *self,
                                        const char       *expected_checksum,
@@ -573,20 +573,20 @@ gboolean ostree_repo_remote_list_collection_refs (OstreeRepo    *self,
 _OSTREE_PUBLIC
 gboolean      ostree_repo_load_variant (OstreeRepo  *self,
                                         OstreeObjectType objtype,
-                                        const char    *sha256, 
+                                        const char    *sha256,
                                         GVariant     **out_variant,
                                         GError       **error);
 
 _OSTREE_PUBLIC
 gboolean      ostree_repo_load_variant_if_exists (OstreeRepo  *self,
                                                   OstreeObjectType objtype,
-                                                  const char    *sha256, 
+                                                  const char    *sha256,
                                                   GVariant     **out_variant,
                                                   GError       **error);
 
 _OSTREE_PUBLIC
 gboolean      ostree_repo_load_commit (OstreeRepo            *self,
-                                       const char            *checksum, 
+                                       const char            *checksum,
                                        GVariant             **out_commit,
                                        OstreeRepoCommitState *out_state,
                                        GError               **error);
@@ -612,7 +612,7 @@ gboolean ostree_repo_load_object_stream (OstreeRepo         *self,
 _OSTREE_PUBLIC
 gboolean      ostree_repo_query_object_storage_size (OstreeRepo           *self,
                                                      OstreeObjectType      objtype,
-                                                     const char           *sha256, 
+                                                     const char           *sha256,
                                                      guint64              *out_size,
                                                      GCancellable         *cancellable,
                                                      GError              **error);
@@ -647,7 +647,7 @@ gboolean      ostree_repo_fsck_object (OstreeRepo           *self,
                                        GCancellable         *cancellable,
                                        GError              **error);
 
-/** 
+/**
  * OstreeRepoCommitFilterResult:
  * @OSTREE_REPO_COMMIT_FILTER_ALLOW: Do commit this object
  * @OSTREE_REPO_COMMIT_FILTER_SKIP: Ignore this object
@@ -1561,7 +1561,7 @@ OstreeGpgVerifyResult * ostree_repo_verify_summary (OstreeRepo    *self,
  * @OSTREE_REPO_VERIFY_FLAGS_NONE: No flags
  * @OSTREE_REPO_VERIFY_FLAGS_NO_GPG: Skip GPG verification
  * @OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI: Skip all other signature verification methods
- * 
+ *
  * Since: 2021.4
  */
 typedef enum {
index 805c156c83c26b019ccfb393879ba5c94e6212c3..a13688cff7e15f8378299e9558bf6e1e2a41787f 100644 (file)
@@ -49,7 +49,7 @@ rollsum_chunks_crc32 (GBytes           *bytes)
 
       if (!rollsum_end)
         {
-          offset = bupsplit_find_ofs (buf + start, MIN(G_MAXINT32, remaining), &bits); 
+          offset = bupsplit_find_ofs (buf + start, MIN(G_MAXINT32, remaining), &bits);
           if (offset == 0)
             {
               rollsum_end = TRUE;
@@ -94,7 +94,7 @@ compare_matches (const void *app,
   GVariant **bvpp = (GVariant**)bpp;
   GVariant *b = *bvpp;
   guint64 a_start, b_start;
-  
+
   g_variant_get_child (a, 2, "t", &a_start);
   g_variant_get_child (b, 2, "t", &b_start);
 
@@ -165,7 +165,7 @@ _ostree_compute_rollsum_matches (GBytes                           *from,
                   /* Same crc32 but different length, skip it.  */
                   if (to_offset != from_offset)
                     continue;
-                  
+
                   /* Rsync uses a cryptographic checksum, but let's be
                    * very conservative here and just memcmp.
                    */
@@ -176,7 +176,7 @@ _ostree_compute_rollsum_matches (GBytes                           *from,
                       ret_rollsum->match_size += to_offset;
                       g_ptr_array_add (matches, g_variant_ref_sink (match));
                       break; /* Don't need any more matches */
-                    } 
+                    }
                 }
             }
         }
index 5fd59a82f702102ee0db9001fcf2cf63227cfa59..7815744b58915e07526df3d15ef70e3f9dcbdd54 100644 (file)
@@ -307,7 +307,7 @@ ostree_sepolicy_new_from_commit (OstreeRepo  *repo,
        OstreeRepoCheckoutAtOptions coopts = {0,};
        coopts.mode = OSTREE_REPO_CHECKOUT_MODE_USER;
        coopts.subpath = glnx_strjoina ("/", policypath);
-     
+
        if (!ostree_repo_checkout_at (repo, &coopts, tmpdir.fd, policypath, commit, cancellable, error))
          return glnx_prefix_error_null (error, "policy checkout");
     }
index b7d87c6ce518c1be2d7023e0951206df3d448a54..5839a0a14b047fd4706a7950b4a1d0eb69c7cd0f 100644 (file)
@@ -504,7 +504,7 @@ _load_pk_from_stream (OstreeSign *self,
 
       if (line == NULL)
         return ret;
-      
+
       /* Read the key itself */
       /* base64 encoded key */
       pk = g_variant_new_string (line);
@@ -549,14 +549,14 @@ _load_pk_from_file (OstreeSign *self,
   key_stream_in = g_file_read (keyfile, NULL, error);
   if (key_stream_in == NULL)
     return FALSE;
+
   key_data_in = g_data_input_stream_new (G_INPUT_STREAM(key_stream_in));
   g_assert (key_data_in != NULL);
 
   if (!_load_pk_from_stream (self, key_data_in, trusted, error))
     {
       if (error == NULL || *error == NULL)
-        return glnx_throw (error, 
+        return glnx_throw (error,
                            "signature: ed25519: no valid keys in file '%s'",
                            filename);
       else
@@ -598,7 +598,7 @@ _ed25519_load_pk (OstreeSign *self,
       g_autofree gchar *base_dir = NULL;
       g_autoptr (GDir) dir = NULL;
 
-      base_name = g_build_filename ((gchar *)g_ptr_array_index (base_dirs, i), 
+      base_name = g_build_filename ((gchar *)g_ptr_array_index (base_dirs, i),
                                     trusted ? "trusted.ed25519" : "revoked.ed25519",
                                     NULL);
 
index 587d7164ac7f0c87cd07addc839d9cff09b875cc..e0aa5d798ec35c5b61d31d9adc308c469876cb0d 100644 (file)
@@ -460,7 +460,7 @@ ostree_sign_commit_verify (OstreeSign     *self,
  *
  * Since: 2020.2
  */
-const gchar * 
+const gchar *
 ostree_sign_get_name (OstreeSign *self)
 {
   g_assert (OSTREE_IS_SIGN (self));
index 51f87b03e0201fbe7ef9beb4890dcc15180d14cf..181dbd16e9a74b954814e98811e2c10f732ced39 100644 (file)
@@ -161,7 +161,7 @@ list_all_boot_directories (OstreeSysroot       *self,
         {
           g_clear_error (&temp_error);
           goto done;
-        } 
+        }
       else
         {
           g_propagate_error (error, temp_error);
@@ -190,10 +190,10 @@ list_all_boot_directories (OstreeSysroot       *self,
       name = g_file_info_get_name (file_info);
       if (!parse_bootdir_name (name, NULL, NULL))
         continue;
-      
+
       g_ptr_array_add (ret_bootdirs, g_object_ref (child));
     }
-  
+
  done:
   ret = TRUE;
   ot_transfer_out_value (out_bootdirs, &ret_bootdirs);
index 7554e56c370a89f8eb10f61791723df4b73e2df5..cd191d398565f3bcef2e8c3300dd2e6cb2799653 100644 (file)
@@ -3561,7 +3561,7 @@ _ostree_sysroot_finalize_staged (OstreeSysroot *self,
     {
       g_autoptr(GError) writing_error = NULL;
       g_assert_cmpint (self->boot_fd, !=, -1);
-      if (!glnx_file_replace_contents_at (self->boot_fd, _OSTREE_FINALIZE_STAGED_FAILURE_PATH, 
+      if (!glnx_file_replace_contents_at (self->boot_fd, _OSTREE_FINALIZE_STAGED_FAILURE_PATH,
                                            (guint8*)finalization_error->message, -1,
                                            0, cancellable, &writing_error))
         {
@@ -3687,15 +3687,15 @@ ostree_sysroot_deployment_set_kargs_in_place (OstreeSysroot     *self,
         g_variant_new_from_bytes ((GVariantType*)"a{sv}", contents, TRUE);
       g_autoptr(GVariantDict) staged_deployment_dict =
         g_variant_dict_new (staged_deployment_data);
-      
+
       g_autoptr(OstreeKernelArgs) kargs = ostree_kernel_args_from_string (kargs_str);
       g_auto(GStrv) kargs_strv = ostree_kernel_args_to_strv (kargs);
-      
+
       g_variant_dict_insert (staged_deployment_dict, "kargs", "^a&s", kargs_strv);
       g_autoptr(GVariant) new_staged_deployment_data = g_variant_dict_end (staged_deployment_dict);
-      
+
       if (!glnx_file_replace_contents_at (fd, _OSTREE_SYSROOT_RUNSTATE_STAGED,
-                                          g_variant_get_data (new_staged_deployment_data), 
+                                          g_variant_get_data (new_staged_deployment_data),
                                           g_variant_get_size (new_staged_deployment_data),
                                           GLNX_FILE_REPLACE_NODATASYNC,
                                           cancellable, error))
index 63d79b417b96ee5921a9210c7ad082008a05d938..b8edcd64a954761ade291e05e85eebd424806be2 100644 (file)
@@ -308,7 +308,7 @@ ostree_sysroot_initialize_with_mount_namespace (OstreeSysroot *self, GCancellabl
 
   // If the mount namespaces are the same, we need to unshare().
   if (strcmp (mntns_pid1, mntns_self) == 0)
-    { 
+    {
       if (unshare (CLONE_NEWNS) < 0)
         return glnx_throw_errno_prefix (error, "Failed to invoke unshare(CLONE_NEWNS)");
     }
@@ -442,7 +442,7 @@ ostree_sysroot_get_fd (OstreeSysroot *self)
  * @self: Sysroot
  *
  * Can only be invoked after `ostree_sysroot_initialize()`.
- * 
+ *
  * Returns: %TRUE iff the sysroot points to a booted deployment
  * Since: 2020.1
  */
index 26b5d46ba78fd70c4f4af256d84a7e191f4e0fe2..35e306d0920b150cbfed5a3e6ef617561cbd6311 100644 (file)
@@ -75,7 +75,7 @@ _ostree_read_varuint64 (const guint8   *buf,
   guint64 result = 0;
   int count = 0;
   guint8 b;
-  
+
   /* Adapted from CodedInputStream::ReadVarint64Slow */
 
   do
index e89d68e4f0bdd0026ddfdfbfbc97b7cd70ad232c..b48b23608747ef72487b3ea565465750cd99533a 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2017 Colin Walters <walters@verbum.org>
  * Copyright (C) 2022 Igalia S.L.
  *
index ef2260204188f39e57db171cf3d03cfced298be5..56926fe5b038a83fe81aa811c8c962d7bffe0f19 100644 (file)
@@ -51,7 +51,7 @@ ot_gfile_resolve_path_printf (GFile       *path,
 
 /**
  * ot_gfile_replace_contents_fsync:
- * 
+ *
  * Like g_file_replace_contents(), except always uses fdatasync().
  */
 gboolean
index de8abd2bea37578a4dcfba2a78126d454e7d3bd0..066fe380d9fde5c518fa1d3f4b4a46d46c038415 100644 (file)
@@ -133,7 +133,7 @@ ot_keyfile_get_value_with_default_group_optional (GKeyFile      *keyfile,
  * zero or one of the separators and none of the others, read the
  * string as a NULL-terminated array out_value.  If the value string
  * contains multiple of the separators, give an error.
- * 
+ *
  * Returns TRUE on success, FALSE on error. */
 gboolean
 ot_keyfile_get_string_list_with_separator_choice (GKeyFile      *keyfile,
index 39fa97a465c08733e980db3cb405c0663427fc2c..b92168b4441f81eff09b65c36ae8ad8daf5a93a1 100644 (file)
@@ -127,15 +127,15 @@ zbase32_encode(const unsigned char *data, size_t length)
  * distribute, sublicense, and/or sell copies of this software, and to permit
  * persons to whom this 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 this software.
- * 
- * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
+ *
+ * THIS 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. IN NO EVENT SHALL THE
  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THIS SOFTWARE OR THE USE OR OTHER DEALINGS IN 
+ * OUT OF OR IN CONNECTION WITH THIS SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THIS SOFTWARE.
  */
index bf9cf6832d145903eacc08cc3d4b3b336bc1838d..162a2c7e8125aaf37b6b706df0e12f71104a9e9a 100644 (file)
@@ -44,6 +44,6 @@ char *zbase32_encode(const unsigned char *data, size_t length);
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THIS SOFTWARE OR THE USE OR OTHER DEALINGS IN 
+ * OUT OF OR IN CONNECTION WITH THIS SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THIS SOFTWARE.
  */
index 6f038e9ea08f305411c223cb5ae16c5d0d413aff..6b16737dcba97385566ec229b9652baeca578ba4 100644 (file)
@@ -157,7 +157,7 @@ get_directory_listing (int dfd,
   for (i = 0; i < entries->len; i++)
     {
       g_string_append_printf (listing, "<a href=\"%s\">%s</a><br>\r\n",
-                              (char *)entries->pdata[i], 
+                              (char *)entries->pdata[i],
                               (char *)entries->pdata[i]);
       g_free (g_steal_pointer (&entries->pdata[i]));
     }
@@ -367,7 +367,7 @@ do_get (OtTrivialHttpd    *self,
             }
         }
     }
-  else 
+  else
     {
       if (!S_ISREG (stbuf.st_mode))
         {
@@ -401,7 +401,7 @@ do_get (OtTrivialHttpd    *self,
       g_autofree gchar *etag = calculate_etag (mapping);
       if (etag != NULL)
         soup_message_headers_append (msg->response_headers, "ETag", etag);
-      
+
       if (msg->method == SOUP_METHOD_GET)
         {
           gsize buffer_length, file_size;
@@ -729,7 +729,7 @@ run (int argc, char **argv, GCancellable *cancellable, GError **error)
       GSList *listeners = soup_server_get_listeners (server);
       g_autoptr(GSocket) listener = NULL;
       g_autoptr(GSocketAddress) addr = NULL;
-      
+
       g_assert (listeners);
       listener = g_object_ref (listeners->data);
       g_slist_free (listeners);
@@ -739,7 +739,7 @@ run (int argc, char **argv, GCancellable *cancellable, GError **error)
         goto out;
 
       g_assert (G_IS_INET_SOCKET_ADDRESS (addr));
-      
+
       portstr = g_strdup_printf ("%u\n", g_inet_socket_address_get_port ((GInetSocketAddress*)addr));
 #else
       portstr = g_strdup_printf ("%u\n", soup_server_get_port (server));
index 1a6bf2e884060c50438853dfe97df1d216b8175e..91184cd6fcbc07a654896b841dee028a20566475 100644 (file)
@@ -107,24 +107,24 @@ ot_admin_builtin_set_origin (int argc, char **argv, OstreeCommandInvocation *inv
     remote_options = g_variant_ref_sink (g_variant_builder_end (optbuilder));
 
     if (!ostree_repo_remote_change (repo, NULL,
-                                    OSTREE_REPO_REMOTE_CHANGE_ADD_IF_NOT_EXISTS, 
+                                    OSTREE_REPO_REMOTE_CHANGE_ADD_IF_NOT_EXISTS,
                                     remotename, url,
                                     remote_options,
                                     cancellable, error))
       goto out;
   }
-  
+
   { GKeyFile *old_origin = ostree_deployment_get_origin (target_deployment);
     g_autofree char *origin_refspec = g_key_file_get_string (old_origin, "origin", "refspec", NULL);
     g_autofree char *origin_remote = NULL;
     g_autofree char *origin_ref = NULL;
-  
+
     if (!ostree_parse_refspec (origin_refspec, &origin_remote, &origin_ref, error))
       goto out;
 
     { g_autofree char *new_refspec = g_strconcat (remotename, ":", branch ? branch : origin_ref, NULL);
       g_autoptr(GKeyFile) new_origin = NULL;
-      
+
       new_origin = ostree_sysroot_origin_new_from_refspec (sysroot, new_refspec);
 
       if (!ostree_sysroot_write_origin_file (sysroot, target_deployment, new_origin,
index af1a711c23f1e81102c97d772edbee71d83c1e46..672882bd480397f84fb4b7298849f6f32a60814b 100644 (file)
@@ -197,7 +197,7 @@ deployment_print_status (OstreeSysroot    *sysroot,
         return glnx_throw (error, "Cannot verify deployment without remote");
 
       g_autoptr(GBytes) commit_data = g_variant_get_data_as_bytes (commit);
-      g_autoptr(GBytes) commit_detached_metadata_bytes = 
+      g_autoptr(GBytes) commit_detached_metadata_bytes =
         commit_detached_metadata ? g_variant_get_data_as_bytes (commit_detached_metadata) : NULL;
       g_autofree char *verify_text = NULL;
       if (!ostree_repo_signature_verify_commit_data (repo, remote, commit_data, commit_detached_metadata_bytes, 0, &verify_text, error))
index f438a13e682640211d0b7cdd8d94d5c9f6762cd2..393d6be3c8909b3dd465a9eebdc50e45fb4b5612 100644 (file)
@@ -47,7 +47,7 @@ ot_admin_builtin_unlock (int argc, char **argv, OstreeCommandInvocation *invocat
                                           OSTREE_ADMIN_BUILTIN_FLAG_SUPERUSER,
                                           invocation, &sysroot, cancellable, error))
     return FALSE;
-  
+
   if (argc > 1)
     {
       ot_util_usage_error (context, "This command takes no extra arguments", error);
index e2309f6e7c71dd7b68efcbab1ce918f77b7dd087..8c7cd135b03fb25c215ee1b539406e5e54d74eee 100644 (file)
@@ -84,7 +84,7 @@ ot_admin_get_indexed_deployment (OstreeSysroot  *sysroot,
                    current_deployments->len);
       return NULL;
     }
-  
+
   return g_object_ref (current_deployments->pdata[index]);
 }
 
index d35984601e0d4c52e07bd0b72aecbce1208cdea5..0f259beefeb3639961b836938d6cbd06dacd5053 100644 (file)
@@ -55,7 +55,7 @@ ot_admin_instutil_builtin_grub2_generate (int argc, char **argv, OstreeCommandIn
       goto out;
         }
     }
-  else 
+  else
     {
       const char *bootversion_env = g_getenv ("_OSTREE_GRUB2_BOOTVERSION");
       if (bootversion_env)
index 017ae5cb42335eb02481e87c0adfccdc579eaf9f..e324da9e5806836e4e36de3f6f5cb416d580e910 100644 (file)
@@ -104,7 +104,7 @@ relabel_recursively (OstreeSePolicy *sepolicy,
                                        cancellable, error);
   if (!direnum)
     goto out;
-  
+
   while (TRUE)
     {
       GFileInfo *file_info;
@@ -157,7 +157,7 @@ selinux_relabel_dir (OstreeSePolicy                *sepolicy,
                                  cancellable, error);
   if (!root_info)
     goto out;
-  
+
   g_ptr_array_add (path_parts, (char*)prefix);
   if (!relabel_recursively (sepolicy, dir, root_info, path_parts,
                             cancellable, error))
@@ -220,7 +220,7 @@ ot_admin_instutil_builtin_selinux_ensure_labeled (int argc, char **argv, OstreeC
   sepolicy = ostree_sepolicy_new (deployment_path, cancellable, error);
   if (!sepolicy)
     goto out;
-  
+
   policy_name = ostree_sepolicy_get_name (sepolicy);
   if (policy_name)
     {
index 2a16da9c96d7d5f5b929ac3365d20186b1fefe20..f7125e2cf48a5c4a9f7391a3666727381cf11a35 100644 (file)
@@ -66,13 +66,13 @@ ot_admin_kargs_builtin_edit_in_place (int argc, char **argv, OstreeCommandInvoca
               ostree_kernel_args_append_if_missing (kargs, arg);
             }
         }
-      
+
       g_autofree char *new_options = ostree_kernel_args_to_string (kargs);
-      
-      if (!ostree_sysroot_deployment_set_kargs_in_place (sysroot, deployment, new_options, 
+
+      if (!ostree_sysroot_deployment_set_kargs_in_place (sysroot, deployment, new_options,
                                                          cancellable, error))
         return FALSE;
-      
+
     }
 
   return TRUE;
index 503fb9a7bef3475a8a14a7ce015a906e4aab1bc0..73e18d1568fb709d87145ecb33b4679e2bcdc687 100644 (file)
@@ -188,7 +188,7 @@ ostree_builtin_admin (int argc, char **argv, OstreeCommandInvocation *invocation
   OstreeCommandInvocation sub_invocation = { .command = subcommand };
   if (!subcommand->fn (argc, argv, &sub_invocation, cancellable, error))
     goto out;
+
   ret = TRUE;
  out:
   return ret;
index bd9c357af0f7fc1be3eea4eae946f32339d450d3..9c918348b3497bd34b79933fc6974f4db92ef0be 100644 (file)
@@ -164,11 +164,11 @@ ostree_builtin_diff (int argc, char **argv, OstreeCommandInvocation *invocation,
 
   if (opt_fs_diff)
     {
-      OstreeDiffFlags diff_flags = OSTREE_DIFF_FLAGS_NONE; 
+      OstreeDiffFlags diff_flags = OSTREE_DIFF_FLAGS_NONE;
 
       if (opt_no_xattrs)
         diff_flags |= OSTREE_DIFF_FLAGS_IGNORE_XATTRS;
-      
+
       if (!parse_file_or_commit (repo, src, &srcf, cancellable, error))
         return FALSE;
       if (!parse_file_or_commit (repo, target, &targetf, cancellable, error))
index bcf7da564b4b6c883ff24c8acbada9ec67459626..a8929ec19078dbeb3423983a3dd888278955172e 100644 (file)
@@ -82,7 +82,7 @@ ostree_builtin_export (int argc, char **argv, OstreeCommandInvocation *invocatio
   if (!ostree_option_context_parse (context, options, &argc, &argv, invocation, &repo, cancellable, error))
     goto out;
 
-#ifdef HAVE_LIBARCHIVE  
+#ifdef HAVE_LIBARCHIVE
 
   if (argc <= 1)
     {
@@ -157,8 +157,8 @@ ostree_builtin_export (int argc, char **argv, OstreeCommandInvocation *invocatio
   g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
                "This version of ostree is not compiled with libarchive support");
   goto out;
-#endif  
-  
+#endif
+
   ret = TRUE;
  out:
   return ret;
index 60c780901e6da2da48b7c5a975abdbd0104b6a5b..bb9e8563ba3dc672d5f2e4939471ffb17537f4e1 100644 (file)
@@ -452,7 +452,7 @@ ostree_builtin_fsck (int argc, char **argv, OstreeCommandInvocation *invocation,
   if (n_fsck_partial > 0)
     return glnx_throw (error, "%u partial commits from fsck-detected corruption", n_partial);
 
-  g_print ("object fsck of %d commits completed successfully - no errors found.\n", 
+  g_print ("object fsck of %d commits completed successfully - no errors found.\n",
            (guint)g_hash_table_size (commits));
 
   return TRUE;
index 5fa080ae316b61826e049354dacdfef52e62c1f8..2a7d1cdcfdd42fe5a086319c58fb6a69a0b92cd3 100644 (file)
@@ -92,7 +92,7 @@ print_one_file_text (GFile        *f,
                           g_file_info_get_attribute_uint32 (file_info, "unix::uid"),
                           g_file_info_get_attribute_uint32 (file_info, "unix::gid"),
                           g_file_info_get_attribute_uint64 (file_info, "standard::size"));
-  
+
   if (opt_checksum)
     {
       if (type == G_FILE_TYPE_DIRECTORY)
@@ -107,7 +107,7 @@ print_one_file_text (GFile        *f,
 
       if (!ostree_repo_file_get_xattrs ((OstreeRepoFile*)f, &xattrs, cancellable, error))
         return FALSE;
-      
+
       formatted = g_variant_print (xattrs, TRUE);
       g_string_append (buf, "{ ");
       g_string_append (buf, formatted);
@@ -120,7 +120,7 @@ print_one_file_text (GFile        *f,
 
   if (type == G_FILE_TYPE_SYMBOLIC_LINK)
     g_string_append_printf (buf, " -> %s", g_file_info_get_attribute_byte_string (file_info, "standard::symlink-target"));
-      
+
   g_print ("%s\n", buf->str);
 
   return TRUE;
@@ -175,13 +175,13 @@ print_directory_recurse (GFile        *f,
   else
     g_assert (depth == -1);
 
-  dir_enum = g_file_enumerate_children (f, OSTREE_GIO_FAST_QUERYINFO, 
+  dir_enum = g_file_enumerate_children (f, OSTREE_GIO_FAST_QUERYINFO,
                                         G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
-                                        NULL, 
+                                        NULL,
                                         error);
   if (dir_enum == NULL)
     return FALSE;
-  
+
   while ((child_info = g_file_enumerator_next_file (dir_enum, NULL, &temp_error)) != NULL)
     {
       g_clear_object (&child);
@@ -227,10 +227,10 @@ print_one_argument (OstreeRepo   *repo,
                                  cancellable, error);
   if (file_info == NULL)
     return FALSE;
-  
+
   if (!print_one_file (f, file_info, cancellable, error))
     return FALSE;
-      
+
   if (g_file_info_get_file_type (file_info) == G_FILE_TYPE_DIRECTORY)
     {
       if (opt_recursive)
@@ -244,7 +244,7 @@ print_one_argument (OstreeRepo   *repo,
             return FALSE;
         }
     }
-  
+
   return TRUE;
 }
 
@@ -285,6 +285,6 @@ ostree_builtin_ls (int argc, char **argv, OstreeCommandInvocation *invocation, G
       if (!print_one_argument (repo, root, "/", cancellable, error))
         return FALSE;
     }
-  
+
   return TRUE;
 }
index 73dfe5e5da24ef7bfbac3ffdf7b496e4402e8d9d..594406abac52afa05649f263ad6f35c5a9122da7 100644 (file)
@@ -345,7 +345,7 @@ ostree_builtin_prune (int argc, char **argv, OstreeCommandInvocation *invocation
     }
 
   g_autofree char *formatted_freed_size = g_format_size_full (objsize_total, 0);
-  if (opt_commit_only) 
+  if (opt_commit_only)
     g_print("Total (commit only) objects: %u\n", n_objects_total);
   else
     g_print ("Total objects: %u\n", n_objects_total);
index 5dfaf887ceb15b61e32c067d4fea8b0b93a0df69..a49445daf60e156d2953b472e07390ee34d8f0a6 100644 (file)
@@ -105,7 +105,7 @@ ostree_builtin_pull_local (int argc, char **argv, OstreeCommandInvocation *invoc
   if (src_repo_arg[0] == '/')
     src_repo_uri = g_strconcat ("file://", src_repo_arg, NULL);
   else
-    { 
+    {
       g_autofree char *cwd = g_get_current_dir ();
       src_repo_uri = g_strconcat ("file://", cwd, "/", src_repo_arg, NULL);
     }
@@ -139,7 +139,7 @@ ostree_builtin_pull_local (int argc, char **argv, OstreeCommandInvocation *invoc
 
       { GHashTableIter hashiter;
         gpointer hkey, hvalue;
-        
+
         g_hash_table_iter_init (&hashiter, refs_to_clone);
         while (g_hash_table_iter_next (&hashiter, &hkey, &hvalue))
           g_ptr_array_add (refs_to_fetch, g_strdup (hkey));
@@ -152,7 +152,7 @@ ostree_builtin_pull_local (int argc, char **argv, OstreeCommandInvocation *invoc
       for (i = 2; i < argc; i++)
         {
           const char *ref = argv[i];
-          
+
           g_ptr_array_add (refs_to_fetch, (char*)ref);
         }
       g_ptr_array_add (refs_to_fetch, NULL);
@@ -202,7 +202,7 @@ ostree_builtin_pull_local (int argc, char **argv, OstreeCommandInvocation *invoc
       progress = ostree_async_progress_new_and_connect (noninteractive_console_progress_changed, &console);
 
     opts = g_variant_ref_sink (g_variant_builder_end (&builder));
-    if (!ostree_repo_pull_with_options (repo, src_repo_uri, 
+    if (!ostree_repo_pull_with_options (repo, src_repo_uri,
                                         opts,
                                         progress,
                                         cancellable, error))
index e6cc053b332437b08367ec312f247410736993af..07671e541f29ea9f2dbfa70bd4dd43b9160248ca 100644 (file)
@@ -298,10 +298,10 @@ ostree_builtin_pull (int argc, char **argv, OstreeCommandInvocation *invocation,
                              g_variant_new_variant (g_variant_new_strv ((const char *const*) refs_to_fetch->pdata, -1)));
     g_variant_builder_add (&builder, "{s@v}", "depth",
                            g_variant_new_variant (g_variant_new_int32 (opt_depth)));
-   
+
     g_variant_builder_add (&builder, "{s@v}", "update-frequency",
                            g_variant_new_variant (g_variant_new_uint32 (opt_frequency)));
-    
+
     if (opt_network_retries >= 0)
       g_variant_builder_add (&builder, "{s@v}", "n-network-retries",
                              g_variant_new_variant (g_variant_new_uint32 (opt_network_retries)));
index 95cb45aba56d6ec22d78fe04f3687a70484fb55b..7da0a01b4238e0b02cc42f2933eb31eb484dca17 100644 (file)
@@ -92,6 +92,6 @@ ostree_builtin_rev_parse (int argc, char **argv, OstreeCommandInvocation *invoca
         return FALSE;
       g_print ("%s\n", resolved_rev);
     }
+
   return TRUE;
 }
index f6e8e6a6318973b219a56c77a0a21bf7a1bbca0d..706a52992496dff670db7a2fcbf3afe62366620a 100644 (file)
@@ -91,7 +91,7 @@ ot_editor_prompt (OstreeRepo *repo,
     args = g_strconcat (editor, " ", quoted_file, NULL);
   }
 
-  proc = g_subprocess_new (G_SUBPROCESS_FLAGS_STDIN_INHERIT, error, 
+  proc = g_subprocess_new (G_SUBPROCESS_FLAGS_STDIN_INHERIT, error,
                            "/bin/sh", "-c", args, NULL);
 
   if (!g_subprocess_wait_check (proc, cancellable, error))
index 4044b5ac08c9a6d829064ce53f36b5d5f871dda3..a81c1b412d3a8c194962ed085b5070d0be771345 100644 (file)
@@ -70,7 +70,7 @@ do_remount (const char *target,
       /* Also ignore EINVAL - if the target isn't a mountpoint
        * already, then assume things are OK.
        */
-      if (errno != EINVAL)  
+      if (errno != EINVAL)
         err (EXIT_FAILURE, "failed to remount(%s) %s", writable ? "rw" : "ro", target);
       else
         return;
index fc995298c15dbb59067c47755166090c0f5286c3..99e1c5471f12aa46903fd0536b0fb4a13423d47d 100644 (file)
@@ -512,7 +512,7 @@ test_read_xattrs (void)
   {
     g_autoptr(GVariant) current_xattrs = ostree_fs_get_all_xattrs (tmpd.fd, NULL, error);
     g_assert_no_error (local_error);
-  
+
     int r = fsetxattr (tmpd.fd, "user.ostreetesting", value, sizeof (value), 0);
 
     if (r != 0)
@@ -525,7 +525,7 @@ test_read_xattrs (void)
 
     g_autoptr(GVariant) new_xattrs = ostree_fs_get_all_xattrs (tmpd.fd, NULL, error);
     g_assert_no_error (local_error);
-  
+
     compare_xattrs (current_xattrs, new_xattrs);
   }
 
@@ -546,10 +546,10 @@ test_read_xattrs (void)
     // if (r < 0)
     //   glnx_throw_errno_prefix (error, "lsetxattr");
     // g_assert_no_error (local_error);
-  
+
     // g_autoptr(GVariant) new_xattrs = ostree_fs_get_all_xattrs_at (tmpd.fd, "somelink", NULL, error);
     // g_assert_no_error (local_error);
-  
+
     // compare_xattrs (current_xattrs, new_xattrs);
   }
 }
index 22b6decace1f1b543eb11398a79d69bc0003b8c9..c11bd0f1d9b92fc50fdca5d297ce0a8ccdc1980f 100644 (file)
@@ -73,31 +73,31 @@ run (GError **error)
   g_autoptr(GBytes) commit_bytes = g_variant_get_data_as_bytes (commit);
   g_autoptr(GBytes) detached_meta_bytes = g_variant_get_data_as_bytes (detached_meta);
   g_autofree char *verify_report = NULL;
-  if (!ostree_repo_signature_verify_commit_data (repo, "origin", commit_bytes, detached_meta_bytes, 0, 
+  if (!ostree_repo_signature_verify_commit_data (repo, "origin", commit_bytes, detached_meta_bytes, 0,
                                                  &verify_report, error))
     return FALSE;
 
-  if (ostree_repo_signature_verify_commit_data (repo, "origin", commit_bytes, detached_meta_bytes, 
-                                                OSTREE_REPO_VERIFY_FLAGS_NO_GPG | OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI, 
+  if (ostree_repo_signature_verify_commit_data (repo, "origin", commit_bytes, detached_meta_bytes,
+                                                OSTREE_REPO_VERIFY_FLAGS_NO_GPG | OSTREE_REPO_VERIFY_FLAGS_NO_SIGNAPI,
                                                 &verify_report, error))
     return glnx_throw (error, "Should not have validated");
   assert_error_contains (error, "No commit verification types enabled");
 
   // No signatures
   g_autoptr(GBytes) empty = g_bytes_new_static ("", 0);
-  if (ostree_repo_signature_verify_commit_data (repo, "origin", commit_bytes, empty, 0, 
+  if (ostree_repo_signature_verify_commit_data (repo, "origin", commit_bytes, empty, 0,
                                                  &verify_report, error))
     return glnx_throw (error, "Should not have validated");
   assert_error_contains (error, "no signatures found");
   // No such remote
-  if (ostree_repo_signature_verify_commit_data (repo, "nosuchremote", commit_bytes, detached_meta_bytes, 0, 
+  if (ostree_repo_signature_verify_commit_data (repo, "nosuchremote", commit_bytes, detached_meta_bytes, 0,
                                                  &verify_report, error))
     return glnx_throw (error, "Should not have validated");
   assert_error_contains (error, "Remote \"nosuchremote\" not found");
 
   // Corrupted commit
   g_autoptr(GBytes) corrupted_commit = corrupt (commit_bytes);
-  if (ostree_repo_signature_verify_commit_data (repo, "origin", corrupted_commit, detached_meta_bytes, 0, 
+  if (ostree_repo_signature_verify_commit_data (repo, "origin", corrupted_commit, detached_meta_bytes, 0,
                                                  &verify_report, error))
     return glnx_throw (error, "Should not have validated");
   assert_error_contains (error, "BAD signature");
index 716aa3065cd4a462d34daf13e0263f504cab864e..a89fcc2410f89d11180c2fffd86a71b9d319e186 100644 (file)
@@ -54,7 +54,7 @@ test_data_init (TestData *td)
 
   g_assert_no_error (error);
   g_assert (td->fd >= 0);
-  
+
   g_assert_cmpint (0, ==, archive_write_set_format_pax (a));
   g_assert_cmpint (0, ==, archive_write_add_filter_gzip (a));
   g_assert_cmpint (0, ==, archive_write_open_fd (a, td->fd));
index 3957e43bae4b260102c661c24d1a55e097ff5ccb..037a17899b040ccf8be96b7ed8dafa960b7ba9fc 100644 (file)
@@ -81,7 +81,7 @@ test_pull_multi_nochange (gconstpointer data)
     goto out;
   if (!ostree_repo_pull (td->repo, "origin", (char**)&refs, 0, NULL, NULL, error))
     goto out;
-  
+
  out:
   g_assert_no_error (local_error);
 }
@@ -91,7 +91,7 @@ test_pull_multi_error_then_ok (gconstpointer data)
 {
   GError *local_error = NULL;
   GError **error = &local_error;
-  
+
   TestData *td = (void*)data;
   char *ok_refs[] = { "main", NULL };
   char *bad_refs[] = { "nosuchbranch", NULL };
@@ -110,7 +110,7 @@ test_pull_multi_error_then_ok (gconstpointer data)
       if (!ostree_repo_pull (td->repo, "origin", (char**)&ok_refs, 0, NULL, NULL, error))
         goto out;
     }
-  
+
  out:
   g_assert_no_error (local_error);
 }
index 4a7a44a029287bca11fba979d511e8cef0319bb8..b8365ea9ba11762819ccab1ed15b63402312eaa9 100644 (file)
@@ -245,13 +245,13 @@ test_write_regfile_api (Fixture *fixture,
   g_clear_pointer (&checksum, g_free);
 
   // Invalid checksum
-  checksum = ostree_repo_write_regfile_inline (repo, "3272139f889f6a7007b3d64adc74be9e2979bf6bbe663d1512e5bd43f4de24a1", 
+  checksum = ostree_repo_write_regfile_inline (repo, "3272139f889f6a7007b3d64adc74be9e2979bf6bbe663d1512e5bd43f4de24a1",
               0, 0, S_IFREG | 0644, NULL, (const guint8*)contents, sizeof (contents)-1, NULL, &error);
   g_assert (checksum == NULL);
   g_assert (error != NULL);
   g_clear_error (&error);
-  
-  // Now with xattrs 
+
+  // Now with xattrs
   g_clear_pointer (&checksum, g_free);
   checksum = ostree_repo_write_regfile_inline (repo, NULL, 0, 0, S_IFREG | 0644, xattrs, (const guint8*)contents, sizeof (contents)-1, NULL, &error);
   g_assert_no_error (error);
index 2b1fc710958da5a832547405e6e19a7304f98a0d..82b4b1bf5054b9288b64039026987274932b38ec 100644 (file)
@@ -77,10 +77,10 @@ int main (int argc, char **argv)
 
   g_test_init (&argc, &argv, NULL);
 
-  sysroot = ot_test_setup_sysroot (NULL, &error); 
+  sysroot = ot_test_setup_sysroot (NULL, &error);
   if (!sysroot)
     goto out;
-  
+
   g_test_add_data_func ("/sysroot-reload", sysroot, test_sysroot_reload);
 
   return g_test_run();