Changeset - ce23bfb50229
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 16 years ago 2009-07-13 22:13:53
ohnobinki@ohnopublishing.net
fixed typos in remoteio, added missing #include, removed const
2 files changed with 5 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/common/remoteio.c
Show inline comments
 
@@ -19,6 +19,7 @@
 
*/
 

	
 
#include "remoteio.h"
 
#include "execio.h"
 

	
 
#include <stdlib.h>
 
#include <stdio.h>
 
@@ -26,16 +27,16 @@
 
/**
 
   @todo there must be passage of a configuratoin struct to allow configuration of different ssh clients.
 
 */
 
int remoteio_open(struct remoteio **rem, const char *servername)
 
int remoteio_open(struct remoteio **rem, char *servername)
 
{
 
  const char *sshargs[] = {"ssh", servername, "distrend", "-d", (char *)NULL};
 
  char *sshargs[] = {"ssh", servername, "distrend", "-d", (char *)NULL};
 
  int rtn;
 

	
 
  *rem = malloc(sizeof(struct remoteio));
 
  rtn = execio_open( &(*rem)->execio, "ssh", sshargs);
 
  if(rtn)
 
    {
 
      fprinf(stderr, "error opening remoteio channel to server ``%s''" , servername);
 
      fprintf(stderr, "error opening remoteio channel to server ``%s''" , servername);
 
      free(*rem);
 
      return 1;
 
    }
src/common/remoteio.h
Show inline comments
 
@@ -35,7 +35,7 @@ struct remoteio {
 

	
 
   @todo should this be asynchronous?
 
 */
 
int remoteio_open(struct remoteio **rem, const char *servername);
 
int remoteio_open(struct remoteio **rem, char *servername);
 

	
 
/**
 
   non-blocking I/O.
0 comments (0 inline, 0 general)