dim
|
f7310af2cc
|
Fix the following -Wcast-qual warnings in usr.sbin/sa/db.c:
usr.sbin/sa/db.c:82:20: error: cast from 'char const (*)[9]' to 'void *' drops const qualifier [-Werror,-Wcast-qual]
key.data = (void*)&VERSION_KEY;
^
usr.sbin/sa/db.c:178:20: error: cast from 'char const (*)[9]' to 'void *' drops const qualifier [-Werror,-Wcast-qual]
key.data = (void*)&VERSION_KEY;
^
Replace the VERSION_KEY define with a writable char array, so no const
qualifier needs to be dropped anymore.
Submitted by: rdivacky
|
2015-01-28 22:22:49 +00:00 |
|
dim
|
6429d99436
|
In usr.sbin/sa/db.c, avoid warnings about assigning two const char
arrays to non-const void pointers, by casting away const explicitly.
MFC after: 1 week
|
2011-12-18 01:08:25 +00:00 |
|
grog
|
afb9fa5a4b
|
Ensure that the -s flag truncates the accounting data.
This problem has only been reported on the amd64 platform.
PR: bin/120293
Tested by: Callum Gibson
MFC after: 2 weeks
|
2008-02-21 07:12:56 +00:00 |
|
jb
|
64d8b73773
|
Fix a compiler warning by using a printf format matching the variable
type.
|
2007-11-17 23:17:05 +00:00 |
|
dds
|
9ed27d1038
|
Increase precision of time values in the process accounting
structure, while maintaining backward compatibility with legacy
file and record formats.
|
2007-05-22 06:51:38 +00:00 |
|