summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-24 01:52:10 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2010-12-24 01:52:10 +0100
commit2d9057c497585c4eb76e5f3ad4f623da56a2e28c (patch)
tree4f519791995a4d83bdf559a98611d104575e91ff /console.c
parentdbadc1ab26b3cca6b3697d9c07f284f582dde75d (diff)
downloadMAC-Telnet-2d9057c497585c4eb76e5f3ad4f623da56a2e28c.tar.gz
MAC-Telnet-2d9057c497585c4eb76e5f3ad4f623da56a2e28c.zip
Changed naming convention on function names
Diffstat (limited to 'console.c')
-rw-r--r--console.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/console.c b/console.c
index 090e11c..60c854e 100644
--- a/console.c
+++ b/console.c
@@ -26,7 +26,7 @@
struct termios origTerm;
-int rawTerm() {
+int raw_term() {
struct termios new;
if (tcgetattr(STDIN_FILENO, &origTerm) < 0) {
@@ -49,7 +49,7 @@ int rawTerm() {
return 0;
}
-int resetTerm() {
+int reset_term() {
if (tcsetattr(STDIN_FILENO, TCSANOW, &origTerm) < 0) {
perror("tcsetattr");
return -1;
@@ -57,7 +57,7 @@ int resetTerm() {
return 0;
}
-int getTerminalSize(unsigned short *width, unsigned short *height) {
+int get_terminal_size(unsigned short *width, unsigned short *height) {
struct winsize ws;
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != 0) {
@@ -71,7 +71,7 @@ int getTerminalSize(unsigned short *width, unsigned short *height) {
return 0;
}
-int setTerminalSize(int fd, unsigned short width, unsigned short height) {
+int set_terminal_size(int fd, unsigned short width, unsigned short height) {
struct winsize ws;
ws.ws_col = width;