mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
introduced the server_id variable
This commit is contained in:
@ -33,7 +33,7 @@ int main(int argc, char **argv){
|
||||
cfg = read_config(CONFIG_FILE);
|
||||
|
||||
|
||||
init_session_data(&sdata);
|
||||
init_session_data(&sdata, cfg.server_id);
|
||||
|
||||
sdata.sent = 0;
|
||||
sdata.tot_len = st.st_size;
|
||||
|
@ -40,7 +40,7 @@ int parse_it(char *filename, struct session_data *sdata, struct __data *data, st
|
||||
struct _state state;
|
||||
|
||||
|
||||
init_session_data(sdata);
|
||||
init_session_data(sdata, cfg->server_id);
|
||||
|
||||
if(stat(filename, &st) != 0){
|
||||
printf("cannot stat() %s\n", filename);
|
||||
|
Reference in New Issue
Block a user