int size;
socklen_t size;
size = sizeof(sock);
size = (socklen_t)sizeof(sock);
top_mob_index * (sizeof (*pMobIndex))
2355 extern FILE * fpReserve;
2587 char fread_letter args( ( FILE *fp ) );
2588 int fread_number args( ( FILE *fp ) );
2589 long fread_flag args( ( FILE *fp ) );
2590 char * fread_string args( ( FILE *fp ) );
2591 char * fread_string_eol args( ( FILE *fp ) );
2592 void fread_to_eol args( ( FILE *fp ) );
2593 void * alloc_mem args( ( int sMem ) );
I just started my mud again. After I got it on the hosts system I did a make clean. and got the following
[[size=5][b]ALL BROKEN OR WARNING CODES ARE NUMBERED[/b][/size]
comm.c: In function `init_descriptor':
comm.c:948: warning: passing arg 3 of `getsockname' from incompatible pointer type
comm.c:949: warning: passing arg 3 of `accept' from incompatible pointer type
comm.c:985: warning: passing arg 3 of `getpeername' from incompatible pointer type
[code]
947 size = sizeof (sock);
948 getsockname (control, (struct sockaddr *) &sock, &size);
949 if ((desc = accept (control, (struct sockaddr *) &sock, &size)) < 0)
950 {
951 perror ("New_descriptor: accept");
952 return;
984 size = sizeof (sock);
985 if (getpeername (desc, (struct sockaddr *) &sock, &size) < 0)
986 {
987 perror ("New_descriptor: getpeername");
988 dnew->host = str_dup ("(unknown)");
989 }
[/code]
db.c: In function `do_dump':
db.c:3368: warning: int format, different type arg (arg 4)
db.c:3386: warning: int format, different type arg (arg 4)
db.c:3386: warning: int format, different type arg (arg 6)
db.c:3395: warning: int format, different type arg (arg 4)
db.c:3395: warning: int format, different type arg (arg 6)
db.c:3406: warning: int format, different type arg (arg 4)
db.c:3406: warning: int format, different type arg (arg 6)
db.c:3418: warning: int format, different type arg (arg 4)
db.c:3435: warning: int format, different type arg (arg 4)
db.c:3435: warning: int format, different type arg (arg 6)
db.c:3444: warning: int format, different type arg (arg 4)
db.c:3444: warning: int format, different type arg (arg 6)
db.c:3448: warning: int format, different type arg (arg 4)
db.c:3452: warning: int format, different type arg (arg 4)
[code]
/* mobile prototypes */
fprintf (fp, "MobProt %4d (%8d bytes)\n",
3386 top_mob_index, top_mob_index * (sizeof (*pMobIndex)));
/* mobs */
count = 0;
count2 = 0;
for (fch = char_list; fch != NULL; fch = fch->next)
{
count++;
if (fch->pcdata != NULL)
num_pcs++;
for (af = fch->affected; af != NULL; af = af->next)
aff_count++;
}
for (fch = char_free; fch != NULL; fch = fch->next)
count2++;
fprintf (fp, "Mobs %4d (%8d bytes), %2d free (%d bytes)\n",
count, count * (sizeof (*fch)), count2,
3386 count2 * (sizeof (*fch)));
/* pcdata */
count = 0;
for (pc = pcdata_free; pc != NULL; pc = pc->next)
count++;
fprintf (fp, "Pcdata %4d (%8d bytes), %2d free (%d bytes)\n",
num_pcs, num_pcs * (sizeof (*pc)), count,
3395 count * (sizeof (*pc)));
/* descriptors */
count = 0;
count2 = 0;
for (d = descriptor_list; d != NULL; d = d->next)
count++;
for (d = descriptor_free; d != NULL; d = d->next)
count2++;
fprintf (fp, "Descs %4d (%8d bytes), %2d free (%d bytes)\n",
3406 count, count * (sizeof (*d)), count2, count2 * (sizeof (*d)));
/* object prototypes */
for (vnum = 0; nMatch < top_obj_index; vnum++)
if ((pObjIndex = get_obj_index (vnum)) != NULL)
{
for (af = pObjIndex->affected; af != NULL; af = af->next)
aff_count++;
nMatch++;
}
fprintf (fp, "ObjProt %4d (%8d bytes)\n",
3418 top_obj_index, top_obj_index * (sizeof (*pObjIndex)));
/* objects */
count = 0;
count2 = 0;
for (obj = object_list; obj != NULL; obj = obj->next)
{
count++;
for (af = obj->affected; af != NULL; af = af->next)
aff_count++;
}
for (obj = obj_free; obj != NULL; obj = obj->next)
count2++;
fprintf (fp, "Objs %4d (%8d bytes), %2d free (%d bytes)\n",
count, count * (sizeof (*obj)), count2,
3435 count2 * (sizeof (*obj)));
/* affects */
count = 0;
for (af = affect_free; af != NULL; af = af->next)
count++;
fprintf (fp, "Affects %4d (%8d bytes), %2d free (%d bytes)\n",
aff_count, aff_count * (sizeof (*af)), count,
3444 count * (sizeof (*af)));
/* rooms */
fprintf (fp, "Rooms %4d (%8d bytes)\n",
3448 top_room, top_room * (sizeof (*room)));
/* exits */
fprintf (fp, "Exits %4d (%8d bytes)\n",
3452 top_exit, top_exit * (sizeof (*exit)));
fclose (fp);
[/code]
string.c:649: error: conflicting types for 'getline'
/usr/include/stdio.h:653: error: previous declaration of 'getline' was here
string.c:649: error: conflicting types for 'getline'
/usr/include/stdio.h:653: error: previous declaration of 'getline' was here
make: *** [obj/string.o] Error 1
[code]
647 /* buf queda con la line sin \n\r */
648 char *getline (char *str, char *buf)
649 {
int tmp = 0;
bool found = FALSE;
653 while (*str)
{
if (*str == '\n')
{
found = TRUE;
break;
}
buf[tmp++] = *(str++);
}
if (found)
{
if (*(str + 1) == '\r')
str += 2;
else
str += 1;
} /* para que quedemos en el inicio de la prox linea */
buf[tmp] = '\0';
return str;
}
[/code]
(I don't know Spanish either heh)
I also don't have a file called <stdio.h> that I have noticed
I am not sure what happened to the games info but it wasnt running on anything
Any help you all can offer is most appreciated