Ticket #12771: 0023-fs_cache.c-gcc6-build-fix.patch

File 0023-fs_cache.c-gcc6-build-fix.patch, 1.1 KB (added by mt, 3 years ago)
  • src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c

    From a5c635fa15f2d6d5b5005503af46c82a1a1b9b68 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 18:41:54 +0900
    Subject: [PATCH 23/24] fs_cache.c: gcc6 build fix
    
    * Reindent source code, to fix gcc6
      '-Werror=misleading-indentation' warning.
    ---
     src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c b/src/add-ons/kernel/file_systems/userlandfs/server/beos/fs_cache.c
    index b4aee0d..8a3836d 100644
    a b flush_cache_ent(cache_ent *ce)  
    886886        return 0;
    887887
    888888 restart:
    889     if (ce->clone)
    890         data = ce->clone;
    891     else
    892         data = ce->data;
     889    if (ce->clone)
     890        data = ce->clone;
     891    else
     892        data = ce->data;
    893893
    894894    if (chatty_io > 2) printf("flush: %7Ld\n", ce->block_num);
    895895    ret = beos_write_phys_blocks(ce->dev, ce->block_num, data, 1, ce->bsize);