mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-28 01:54:08 +01:00
Removed dead stores.
This commit is contained in:
parent
5cca63a01c
commit
bf941bc9b2
28 changed files with 85 additions and 139 deletions
|
|
@ -1083,13 +1083,13 @@ static int read_type_list(FILE *shop_f, struct shop_buy_data *list,
|
|||
int new_format, int max)
|
||||
{
|
||||
int tindex, num, len = 0, error = 0;
|
||||
char *ptr, buf[MAX_STRING_LENGTH], *buf1;
|
||||
char *ptr, buf[MAX_STRING_LENGTH];
|
||||
|
||||
if (!new_format)
|
||||
return (read_list(shop_f, list, 0, max, LIST_TRADE));
|
||||
|
||||
do {
|
||||
buf1 = fgets(buf, sizeof(buf), shop_f);
|
||||
fgets(buf, sizeof(buf), shop_f);
|
||||
if ((ptr = strchr(buf, ';')) != NULL)
|
||||
*ptr = '\0';
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue