svn commit: r285912 - head/sys/dev/vt/colors
Marius Strobl
marius at FreeBSD.org
Mon Jul 27 14:34:33 UTC 2015
Author: marius
Date: Mon Jul 27 14:34:32 2015
New Revision: 285912
URL: https://svnweb.freebsd.org/changeset/base/285912
Log:
- Use __FBSDID().
- Const'ify cons_to_vga_colors.
- Fix line wrapping.
MFC after: 3 days
Modified:
head/sys/dev/vt/colors/vt_termcolors.c
Modified: head/sys/dev/vt/colors/vt_termcolors.c
==============================================================================
--- head/sys/dev/vt/colors/vt_termcolors.c Mon Jul 27 14:03:34 2015 (r285911)
+++ head/sys/dev/vt/colors/vt_termcolors.c Mon Jul 27 14:34:32 2015 (r285912)
@@ -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;
More information about the svn-src-head
mailing list