git: restore(8): Fix and enable WARNS.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Tue Oct 18 02:34:38 PDT 2016


commit 01578864af6cb43349c88417cb6f4cbd4e99cccb
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Oct 18 12:01:17 2016 +0300

    restore(8): Fix and enable WARNS.
    
     * Add most cases were const char * should have been used.
     * In few cases use __DECONST(), should be fine for these.
     * Suffix variables with 'g' and 'l' to prevent shadowing.
     * Mark unused parameters.
     * Convert swabst() to take const char * instead of u_char *.
    
    No functional change intended, utility still works.
    (dump -af dumpas /dev/da1s1 && restore -if dumpas) restores files.

Summary of changes:
 sbin/restore/Makefile      |   1 -
 sbin/restore/dirs.c        | 132 ++++++++++++++++++++++-----------------------
 sbin/restore/extern.h      |  24 ++++-----
 sbin/restore/interactive.c |  16 +++---
 sbin/restore/main.c        |  12 ++---
 sbin/restore/restore.c     |   4 +-
 sbin/restore/restore.h     |   2 +-
 sbin/restore/symtab.c      |  19 +++----
 sbin/restore/tape.c        |  18 +++----
 sbin/restore/utilities.c   |   6 +--
 10 files changed, 117 insertions(+), 117 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/01578864af6cb43349c88417cb6f4cbd4e99cccb


-- 
DragonFly BSD source repository



More information about the Commits mailing list