[Assignment-7] app restructure and cleanup
This commit is contained in:
parent
9cd7ef8703
commit
feb0bd1b73
10 changed files with 304 additions and 345 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "intermediary.h"
|
||||
#include "employee.h"
|
||||
#include "proxy.h"
|
||||
#include "proxysetup.h"
|
||||
#include "util.h"
|
||||
|
|
@ -16,8 +16,8 @@ int main(int argc, char** argv) {
|
|||
|
||||
char* command = argv[1];
|
||||
|
||||
if(strcmp(command, "intermediary")==0)
|
||||
handle_intermediary(argc-2, argv+2);
|
||||
if(strcmp(command, "employee")==0)
|
||||
handle_employee(argc-2, argv+2);
|
||||
else if (strcmp(command, "proxy")==0)
|
||||
handle_proxy(argc-2, argv+2);
|
||||
else if (strcmp(command, "proxysetup")==0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue