Merge pull request #409 from hwhw/master
Do not use error() in gluon-neighbour-info
This commit is contained in:
		
						commit
						b91115e8f1
					
				@ -176,8 +176,10 @@ int main(int argc, char **argv) {
 | 
				
			|||||||
        fprintf(stderr, "Invalid parameter %c ignored.\n", c);
 | 
					        fprintf(stderr, "Invalid parameter %c ignored.\n", c);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (request_string == NULL)
 | 
					  if (request_string == NULL) {
 | 
				
			||||||
    error(EXIT_FAILURE, 0, "No request string supplied");
 | 
					    fprintf(stderr, "No request string supplied");
 | 
				
			||||||
 | 
					    exit(EXIT_FAILURE);
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (sse)
 | 
					  if (sse)
 | 
				
			||||||
    fputs("Content-Type: text/event-stream\n\n", stdout);
 | 
					    fputs("Content-Type: text/event-stream\n\n", stdout);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user