Changeset - d6e9f76622f2
[Not reviewed]
default
0 2 0
ethanzonca - 16 years ago 2009-08-01 00:00:22

Warning-squashing
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -117,13 +117,13 @@ int highest_jobnum; // The job number of
 
/* ********************** Functions ************************* */
 

	
 
/* Functions to stubify */
 

	
 
/** Command interface for distren? */
 
int distrend_do(){
 

	
 
	return 0;
 
}
 
/** Something? */
 
void distrend_accept(){
 

	
 
}
 
/** Frees the action */
src/server/slavefuncs.c
Show inline comments
 
@@ -106,13 +106,13 @@ int register_user(char *username, char *
 
      "--gid",
 
      "541",
 
      username,
 
      (char *)NULL
 
    };
 
  size_t readlen;
 
  fprintf(stderr, "Opening stream:\n", execio_open(&testrem, "ssh", execargv));
 
  execio_open(&testrem, "ssh", execargv); // TODO: Grab returns from this someday.
 
  buf[9] = '\0'; // null-terminating the array...
 
  while(!execio_read(testrem, buf, 9, &readlen))
 
    {
 
      if(readlen > 9) {
 
	fprintf(stderr, "!!!! Something is terribly wrong!\n");
 
      }
 
@@ -182,13 +182,13 @@ int login_user(char *username)
 

	
 
  fprintf(stderr, "Logging you in to %s using key %s\n", userhost, userkey);
 
  if(fopen(userkey, "r") == NULL){
 
	  fprintf(stderr,"Your key, %s, has not been found! Re-register or somehow regenerate your key! We need a way to regenerate keys coded in, but we don't have the facilities yet!",userkey);
 
	  return 0;
 
  }
 
  fprintf(stderr, "Opening stream:\n", execio_open(&testrem, "ssh", execargv));
 
  execio_open(&testrem, "ssh", execargv); // TODO: Grab returns from this someday
 
  buf[9] = '\0'; // null-terminating the array...
 
  while(!execio_read(testrem, buf, 9, &readlen))
 
    {
 
      if(readlen > 9) {
 
	fprintf(stderr, "!!!! Something is terribly wrong!\n");
 
      }
 
@@ -232,18 +232,18 @@ int conf_replace(char *username){
 
          fputs(text2repl,fp2);
 
          buff_ptr += find_len;
 
          }
 
          fputs(buff_ptr,fp2);
 
      }
 
    rename(fileRepl, fileOrig);
 
    return 1;
 
  }
 

	
 
  fclose(fp2);
 
  fclose(fp1);
 
  fprintf(stderr,"Wrote conf file...\n");
 
return 1;
 
}
 

	
 

	
 
/* Executors */
 

	
 
/*
0 comments (0 inline, 0 general)