Ticket #12759: 0013-libhttpd.c-fix-gcc6-build.patch

File 0013-libhttpd.c-fix-gcc6-build.patch, 909 bytes (added by mt, 8 years ago)
  • src/apps/poorman/libhttpd/libhttpd.c

    From ee6b777a69366e651e7dc65013a89705450a85a1 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 5 May 2016 16:55:05 +0900
    Subject: [PATCH 13/24] libhttpd.c: fix gcc6 build
    
    * Reindent source code, to fix gcc6
      '-Werror=misleading-indentation' warnings.
    ---
     src/apps/poorman/libhttpd/libhttpd.c | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/apps/poorman/libhttpd/libhttpd.c b/src/apps/poorman/libhttpd/libhttpd.c
    index 766b2ce..3770cf6 100644
    a b expand_symlinks( char* path, char** freethis, char** restP, int no_symlink_check  
    16571657
    16581658    /* Ok. */
    16591659    *restP = r;
    1660     if ( checked[0] == '\0' )
    1661     (void) strcpy( checked, "." );
     1660    if ( checked[0] == '\0' )
     1661        (void) strcpy( checked, "." );
    16621662    *freethis = rest;
    16631663    return checked;
    16641664    }