Skip to content

Commit

Permalink
Merge pull request cloudwu#348 from xjdrew/unused_code
Browse files Browse the repository at this point in the history
removte unused code
  • Loading branch information
cloudwu committed Oct 5, 2015
2 parents 79e73d9 + 97ff6af commit 14bc029
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service-src/service_gate.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,12 @@ gate_init(struct gate *g , struct skynet_context * ctx, char * parm) {
if (parm == NULL)
return 1;
int max = 0;
int buffer = 0;
int sz = strlen(parm)+1;
char watchdog[sz];
char binding[sz];
int client_tag = 0;
char header;
int n = sscanf(parm, "%c %s %s %d %d %d",&header,watchdog, binding,&client_tag , &max,&buffer);
int n = sscanf(parm, "%c %s %s %d %d %d", &header, watchdog, binding, &client_tag, &max);
if (n<4) {
skynet_error(ctx, "Invalid gate parm %s",parm);
return 1;
Expand Down

0 comments on commit 14bc029

Please sign in to comment.