diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2012-03-04 12:07:02 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2012-03-04 12:07:02 +0000 |
commit | dac67a96f772ac579c14be0501737d9d777978dd (patch) | |
tree | 22a1a2e114dfe5b5789a5e4e83ad142c3614b18d /app | |
parent | 64e6f24d70997d19fe803bedfa9065e5bc77fb76 (diff) |
rename getline() occurrences to get_line().
Diffstat (limited to 'app')
-rw-r--r-- | app/fvwm/extras/FvwmCommand/FvwmCommand.c | 4 | ||||
-rw-r--r-- | app/fvwm/extras/FvwmConsole/FvwmConsoleC.c | 4 | ||||
-rw-r--r-- | app/fvwm/extras/FvwmConsole/getline.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/app/fvwm/extras/FvwmCommand/FvwmCommand.c b/app/fvwm/extras/FvwmCommand/FvwmCommand.c index 844269e64..b34262193 100644 --- a/app/fvwm/extras/FvwmCommand/FvwmCommand.c +++ b/app/fvwm/extras/FvwmCommand/FvwmCommand.c @@ -1,4 +1,4 @@ -/* $Id: FvwmCommand.c,v 1.1 2006/11/26 10:53:10 matthieu Exp $ +/* $Id: FvwmCommand.c,v 1.2 2012/03/04 12:07:01 fgsch Exp $ * $Source: /cvs/OpenBSD/xenocara/app/fvwm/extras/FvwmCommand/Attic/FvwmCommand.c,v $ * * Fvwm2 command input interface. @@ -18,7 +18,7 @@ int Fdr, Fdw; /* file discriptor for fifo */ FILE *Frun; /* File contains pid */ char *Fr_name; int Pfd; -char *getline(); +char *get_line(); fd_set fdset; struct timeval Tv; diff --git a/app/fvwm/extras/FvwmConsole/FvwmConsoleC.c b/app/fvwm/extras/FvwmConsole/FvwmConsoleC.c index 62971e13b..8ec790da6 100644 --- a/app/fvwm/extras/FvwmConsole/FvwmConsoleC.c +++ b/app/fvwm/extras/FvwmConsole/FvwmConsoleC.c @@ -3,7 +3,7 @@ int s; /* socket handle */ FILE *sp; char *name; /* name of this program at executing time */ -char *getline(); +char *get_line(); /******************************************/ @@ -74,7 +74,7 @@ int main ( int argc, char *argv[]) { /* loop of get user's command and send it to server */ while( 1 ) { - cmd = getline(); + cmd = get_line(); if (cmd == NULL) { break; } diff --git a/app/fvwm/extras/FvwmConsole/getline.c b/app/fvwm/extras/FvwmConsole/getline.c index 327eadc53..b3ddca604 100644 --- a/app/fvwm/extras/FvwmConsole/getline.c +++ b/app/fvwm/extras/FvwmConsole/getline.c @@ -4,7 +4,7 @@ static char cmd[MAX_COMMAND_SIZE]; /* no readline - starts here */ -char *getline() { +char *get_line() { if( fgets(cmd,MAX_COMMAND_SIZE,stdin) == NULL ) { return(NULL); } @@ -24,7 +24,7 @@ static char *line = (char *)NULL; static int done_init = 0; static char *h_file; -char *getline() +char *get_line() { char *prompt; int len; |