Commit f001114a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Tweak types and add a few casts to get rid of several gcc warnings.

Make Xenofarm ignore a few warnings in code that we didn't write.
parent 10ac6534
2002-09-07 Per Cederqvist <ceder@ceder.dyndns.org>
Tweak types and add a few casts to get rid of several gcc warnings.
* src/server/splitkomdb.c (copy_file): Changed type of sz from int
to size_t to get rid of compiler warnings.
* src/server/simple-cache.c (init_cache): Replaced i with ic and
it to get rid of warnings when the wrong type was used.
* src/server/ramkomd.c (initialize): Added casts to remove warnings.
* src/server/ram-parse.c (fparse_aux_item_link): Added cast to
remove warning.
* src/server/prot-a.c (prot_a_parse_packet): Added cast to remove
warning.
* src/server/local-to-global.h (l2g_set_block_size): Comment
updated.
* src/server/local-to-global.c (l2g_append): Added cast to remove
warning.
(l2g_expensive_set): Ditto.
(l2g_expensive_set): Ditto.
* src/server/dbck.c (motd_of_lyskom): Now a Text_no, not int.
(main): Use atol, not atoi, when setting motd_of_lyskom.
* src/server/dbck-cache.c (next_free_num): Change type to
Conf_no. Added static qualifier.
(cache_sync_all): Replaced the local variable "i" with "ic" and
"it", for loops over conferences and texts.
(init_cache): Changed type of i to unsigned long. Changed type of
motd_of_lyskom to Text_no.
* src/server/connections.h, src/server/connections.c
(num_fnc_defs): Change type to int.
Make Xenofarm ignore a few warnings in code that we didn't write.
* scripts/xenofarm.sh: Ignore warnings from aux-item-def-scan.c
about defined stuff that isn't used. This is an auto-generated
file, and we can't help that it includes a few unused labels and
functions. Ignore warning from getopt about a function
declaration that isn't a prototype.
2002-09-04 Per Cederqvist <ceder@ceder.dyndns.org>
Fix bugs in last commit.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment