Commit 488f886b authored by 's avatar

Changed is_agent() to set_agent() and removed it from mapi.h because it should...

Changed is_agent() to set_agent() and removed it from mapi.h because it should only be called by agent.



git-svn-id: file:///home/svn/mapi/trunk@489 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 274f9512
......@@ -17,6 +17,8 @@
#define MAXPENDING 500 /* Maximum outstanding connection requests */
#define CONF_FILE "./mapi.conf:%s/.mapi.conf:/etc/mapi.conf"
extern void set_agent();
pthread_mutex_t lock;
int service_count;
......@@ -82,7 +84,7 @@ int main(int argc, char **argv) {
die("Unexpected error on listen()");
}
is_agent();
set_agent();
while(1) {
......
......@@ -2404,7 +2404,8 @@ int incr_totalflows() {
}
#ifdef DIMAPI
void is_agent() {
void set_agent();
void set_agent() {
agent=1;
}
#endif
......
......@@ -227,8 +227,4 @@ extern int mapi_get_function_info(int fd, int fid, mapi_function_info_t *info);
//Get information about a function applied to a flow
extern int mapi_get_next_function_info(int fd, int fid, mapi_function_info_t *info);
#ifdef DIMAPI
extern void is_agent();
#endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment