rename getline() occurrences to get_line().
This commit is contained in:
parent
8f201eac31
commit
948a98459f
@ -1,4 +1,4 @@
|
||||
/* $Id: FvwmCommand.c,v 1.1.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: /home/cvs/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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user