Changeset - c2dcea315991
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-30 18:16:46

Fixed some warnings
1 file changed with 3 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/server/slave.c
Show inline comments
 
@@ -40,9 +40,7 @@ int slavestatus = 0; // Ugh global vars
 
int main(int argc, char *argv[])
 
{
 

	
 
int jobnum;
 
char *jobname;
 
int framenum;
 

	
 
int counter;
 

	
 
/* Parses arguments, skips if there are no args */
 
@@ -102,9 +100,9 @@ options_init(argc,argv,&my_cfg, myopts, 
 

	
 
/* If there's no key or username in the conf, or if they're at the default (!key/!username) let the user know! */
 
	if(key == NULL || username == NULL || strcmp(key, "!key") == 0 || strcmp(username, "!username") == 0 ){
 
	  fprintf(stderr, "\nYou didn't register!\nPlease register or edit your config. (see -h)\nIf this error persists, check distrenslave.conf to ensure all items are filled.\n", argv[0]);
 
	  fprintf(stderr, "\nYou didn't register!\nPlease register or edit your config. (see -h)\nIf this error persists, check distrenslave.conf to ensure all items are filled.\n");
 
	}
 
	else if(key != NULL && username != NULL || key != "!key" && username != "username" ){
 
	else if((key != NULL && username != NULL) || (key != "!key" && username != "username") ){
 
		fprintf(stderr, "Your username is %s, and your key is %s.\n",username, key);
 
		// Logs ya in:
 
		if(login_user(username) == 1){
0 comments (0 inline, 0 general)