Skip to content

Commit

Permalink
Fixed some compiler warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19830 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 27, 2014
1 parent 7c1ae4a commit 763bcb5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mosh/src/mosh.cpp
Expand Up @@ -105,7 +105,6 @@ int main(int argc, char* argv[])
char * omhome=check_omhome();
const char* dateStr = __DATE__; // "Mmm dd yyyy", so dateStr+7 = "yyyy"

corba_comm = flagSet("corba",argc,argv);
const string *scriptname = getFlagValue("f",argc,argv);
if ((noserv=flagSet("noserv",argc,argv))&&!scriptname){
cout << "Skip starting server, assumed to be running" << endl;
Expand Down Expand Up @@ -315,13 +314,13 @@ void doSocketCommunication(const string * scriptname)
int nbytes = write(sock,line,strlen(line)+1);
if (nbytes == 0) {
cout << "Error writing to server" << endl;
done = true;
free(line);
break;
}
int recvbytes = read(sock,buf,40000);
if (recvbytes == 0) {
cout << "Received 0 bytes, exiting" << endl;
done = true;
free(line);
break;
}
cout << buf;
Expand Down

0 comments on commit 763bcb5

Please sign in to comment.