Changeset - d13d6894ca72
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-05-24 22:44:16
ohnobinki@ohnopublishing.net
removed obsolete build-failure causing code from distren.c
This code will be moved into libdistren soon
1 file changed with 2 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/client/distren.c
Show inline comments
 
@@ -26,15 +26,11 @@
 
 */
 

	
 

	
 
#include "execio.h"
 

	
 
#include <distren.h>
 

	
 
#include <stdio.h> /* sprintf, printf */
 
#include <stdlib.h> /* malloc, free */
 
#include <unistd.h> /* getopt */
 
#include <libxml/tree.h> /* Happy fun XML time */
 
#include <libxml/xmlwriter.h>
 
#include <confuse.h>
 
#include <string.h> // for strcat
 

	
 
@@ -50,8 +46,6 @@ int main(int argc, char *argv[])
 
  distren_t distren;
 
  distren_job_t distren_job;
 

	
 

	
 

	
 
  input = NULL;
 
  output = NULL;
 

	
 
@@ -141,6 +135,7 @@ int main(int argc, char *argv[])
 
    fprintf(stderr, "execio madness is occuring!");
 
    fprintf(stderr, "execio_open returns %d\n", execio_open(&testrem, "ssh", execargv));
 
    buf[9] = '\0';
 
    /*
 
    while(!execio_read(testrem, buf, 9, &readlen))
 
      {
 
	if(readlen > 9 )
 
@@ -152,6 +147,7 @@ int main(int argc, char *argv[])
 
	fprintf(stderr, "read \"%s\"\n", buf);
 
      }
 
    execio_close(testrem);
 
    */
 
  // Can we prune off some of this code up here^? I'm not exactly sure how execio returns output, but it seems like more could be happening in execio itself, and less happening where it is actually called.
 
  // We need some code to ssh, and if the SSH fails, tell the user to register.
 
  // Killed the user reg code, as the php interface will take care of this. Although it should check for users...
0 comments (0 inline, 0 general)