restore(8): Fix and enable WARNS.
commit01578864af6cb43349c88417cb6f4cbd4e99cccb
authorzrj <rimvydas.jasinskas@gmail.com>
Tue, 18 Oct 2016 09:01:17 +0000 (18 12:01 +0300)
committerzrj <zrj@dragonflybsd.org>
Tue, 18 Oct 2016 09:45:21 +0000 (18 12:45 +0300)
tree8f692e8548d7de2a14fb7d3913e16acd4a9b7e41
parent8c579f0aedd859ef27a70af2fb2bfe665aba3487
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.
sbin/restore/Makefile
sbin/restore/dirs.c
sbin/restore/extern.h
sbin/restore/interactive.c
sbin/restore/main.c
sbin/restore/restore.c
sbin/restore/restore.h
sbin/restore/symtab.c
sbin/restore/tape.c
sbin/restore/utilities.c