Branch: Tag:

2020-07-01

2020-07-01 16:56:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Threads: Minor code clean-up.

2215:    struct mutex_storage *m;    struct key_storage *key;    struct object *o; -  INT_TYPE type; +  INT_TYPE type = 0;       DEBUG_CHECK_THREAD();       m=THIS_MUTEX; -  if(!args) -  type=0; -  else -  get_all_args(NULL, args, "%i", &type); +  get_all_args(NULL, args, ".%i", &type);       switch(type)    {
2507:    struct mutex_storage *m;    struct key_storage *key;    struct object *o; -  INT_TYPE type; +  INT_TYPE type = 0;    int i=0;       /* No reason to release the interpreter lock here
2516:       m=THIS_MUTEX;    -  if(!args) -  type=0; -  else -  get_all_args(NULL, args, "%i", &type); +  get_all_args(NULL, args, ".%i", &type);       switch(type)    {