Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2011 21:10:11 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228426 - head/sys/dev/syscons
Message-ID:  <201112112110.pBBLABRe069305@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sun Dec 11 21:10:11 2011
New Revision: 228426
URL: http://svn.freebsd.org/changeset/base/228426

Log:
  syscons: make sc_puts static as it is used only privately
  
  Perhaps sc_puts should also be renamed to scputs to follow the implied
  naming conventions in the file...
  
  MFC after:	2 weeks

Modified:
  head/sys/dev/syscons/syscons.c
  head/sys/dev/syscons/syscons.h

Modified: head/sys/dev/syscons/syscons.c
==============================================================================
--- head/sys/dev/syscons/syscons.c	Sun Dec 11 21:02:33 2011	(r228425)
+++ head/sys/dev/syscons/syscons.c	Sun Dec 11 21:10:11 2011	(r228426)
@@ -185,6 +185,7 @@ static void scshutdown(void *, int);
 static void scsuspend(void *);
 static void scresume(void *);
 static u_int scgetc(sc_softc_t *sc, u_int flags);
+static void sc_puts(scr_stat *scp, u_char *buf, int len, int kernel);
 #define SCGETC_CN	1
 #define SCGETC_NONBLOCK	2
 static void sccnupdate(scr_stat *scp);
@@ -2603,7 +2604,7 @@ exchange_scr(sc_softc_t *sc)
     mark_all(scp);
 }
 
-void
+static void
 sc_puts(scr_stat *scp, u_char *buf, int len, int kernel)
 {
     int need_unlock = 0;

Modified: head/sys/dev/syscons/syscons.h
==============================================================================
--- head/sys/dev/syscons/syscons.h	Sun Dec 11 21:02:33 2011	(r228425)
+++ head/sys/dev/syscons/syscons.h	Sun Dec 11 21:10:11 2011	(r228426)
@@ -562,7 +562,6 @@ void		sc_save_font(scr_stat *scp, int pa
 void		sc_show_font(scr_stat *scp, int page);
 
 void		sc_touch_scrn_saver(void);
-void		sc_puts(scr_stat *scp, u_char *buf, int len, int kernel);
 void		sc_draw_cursor_image(scr_stat *scp);
 void		sc_remove_cursor_image(scr_stat *scp);
 void		sc_set_cursor_image(scr_stat *scp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112112110.pBBLABRe069305>