Ticket #3547: mc-3547-remove-unused-const-INVALID_OFFSET.patch

File mc-3547-remove-unused-const-INVALID_OFFSET.patch, 1.3 KB (added by and, 8 years ago)
  • src/viewer/internal.h

    From 11b358567cdfeb7693a1182caea6606f2587d91b Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sun, 20 Dec 2015 23:21:09 +0000
    Subject: [PATCH] remove unused const value
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/viewer/internal.h | 1 -
     src/viewer/lib.c      | 1 -
     2 files changed, 2 deletions(-)
    
    diff --git a/src/viewer/internal.h b/src/viewer/internal.h
    index 57ac2a5..a5a7350 100644
    a b typedef unsigned char byte; 
    2323/* A width or height on the screen */ 
    2424typedef unsigned int screen_dimen; 
    2525 
    26 extern const off_t INVALID_OFFSET; 
    2726extern const off_t OFFSETTYPE_MAX; 
    2827 
    2928/*** enums ***************************************************************************************/ 
  • src/viewer/lib.c

    diff --git a/src/viewer/lib.c b/src/viewer/lib.c
    index c82bba8..0683a8c 100644
    a b  
    5656/*** global variables ****************************************************************************/ 
    5757 
    5858#define OFF_T_BITWIDTH (unsigned int) (sizeof (off_t) * CHAR_BIT - 1) 
    59 const off_t INVALID_OFFSET = (off_t) (-1); 
    6059const off_t OFFSETTYPE_MAX = ((off_t) 1 << (OFF_T_BITWIDTH - 1)) - 1; 
    6160 
    6261/*** file scope macro definitions ****************************************************************/