summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2015-12-27 19:47:56 +0000
committermarius <marius@FreeBSD.org>2015-12-27 19:47:56 +0000
commit6933dd0d856ff54d6f46e0326ba843f70113b486 (patch)
treea975c7fef726c36f6b25da5cfdfd4c7e340a21c4 /sys/dev
parenta31458dd6b8f01cd663396c62a22281034ed4590 (diff)
downloadFreeBSD-src-6933dd0d856ff54d6f46e0326ba843f70113b486.zip
FreeBSD-src-6933dd0d856ff54d6f46e0326ba843f70113b486.tar.gz
MFC: r285912
- Use __FBSDID(). - Const'ify cons_to_vga_colors. - Fix line wrapping.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vt/colors/vt_termcolors.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/vt/colors/vt_termcolors.c b/sys/dev/vt/colors/vt_termcolors.c
index d8a5909..5075619 100644
--- a/sys/dev/vt/colors/vt_termcolors.c
+++ b/sys/dev/vt/colors/vt_termcolors.c
@@ -25,15 +25,16 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/param.h>
#include <dev/vt/colors/vt_termcolors.h>
-static struct {
+static const struct {
unsigned char r; /* Red percentage value. */
unsigned char g; /* Green percentage value. */
unsigned char b; /* Blue percentage value. */
@@ -68,8 +69,8 @@ static const int cons_to_vga_colors[16] = {
};
int
-vt_generate_cons_palette(uint32_t *palette, int format, uint32_t rmax, int roffset,
- uint32_t gmax, int goffset, uint32_t bmax, int boffset)
+vt_generate_cons_palette(uint32_t *palette, int format, uint32_t rmax,
+ int roffset, uint32_t gmax, int goffset, uint32_t bmax, int boffset)
{
int i;
OpenPOWER on IntegriCloud