1. 17 Sep, 2001 10 commits
  2. 15 Sep, 2001 2 commits
    • Alain Magloire authored
    • 	the code based on the hints generated by the compiler.  The usual
      	errors:
      	- signed vs unsigned, signedness or unsignedness problems.
      	- printf() wrong formats
      	- wrong prototypes declarations
      	- and different buglets
      	- "const char *" vs "char *"
      	- unused variables
      	- unused arguments.  Tell the compiler by typecasting to void
      	 (void)var.
      	- Some variable when shadowed, meaning in another block variable
      	of the same name where reused.
      	- atoi() is not an ANSI C function, we should use strtol().
      
      	Changes to comply to GNU coding standards, and nuke trailing spaces.
      
      	* mail/alias.c (alia_lookup): No prototypes and scope static.
      	(hash_num, max_rehash, aliases): Scope static and unsigned.
      	(hash): unsigned.
      	(alias_rehash): i unsigned.
      	(alias_lookup_or_install): slot variable unused.
      	(alias_destroy): unsigned.
      	* mail/copy.c (mail_copy0): fprintf wrong format.
      	* mail/decode.c: dislay_message change prototype.
      	(mail_decode): Cast when calling util_msgset_iterate().
      	(display_message): Prototype change.
      	(display_headers): unsigned issues.
      	* mail/delete.c: Buglet was caling mail_delete0() instead of
      	mail_delete.
      	* mail/eq.c: Unused arguments.
      	* mail/exit.c: Unused arguments.
      	* mail/folders.c: Unused arguments.
      	* mail/followup.c: Unused variables.
      	* mail/from.c (mail_from): variable buffer was shadowing use variable
      	name instead. snprintf() formatting issues.
      * mail/headers.c: Unsigned issues.
      	* mail/if.c: Unused arguments.
      	* mail/inc.c: Unused arguments.
      	* mail/list.c: Use const char *.
      	* mail/mail.c: options[], argp[] initialised all elements.
      	(mail_cmdline): Unused arguments.
      	(main): Unsigned issues.
      	(mail_warranty): Unused arguments.
      	* mail/mail.h: function_t with complete prototype this necessary
      	to let the compiler do proper checks.
      	struct mail_command_entry rearrange the fields and a new field
      	int (*escfunc) __P ((int, char **, struct send_environ *));
      	Indentation rearrangements.
      	* mail/mailline.c (ml_getc): Scope is static now.
      	typecast for const char *.
      	(ml_reread): Typecast.
      	* mail/msgset.y: Declare yyerror() and yylex().
      	(msgset_select): Change of prototpe to let the compiler do checks.
      	(selec_sender): Unsused arguments.
      	* mail/pipe.c: Rename variable pipe to tube.
      	* mail/print.c: Unsigness and some shadow variables.
      	* mail/quit.c: Shadow variables.
      	* mail/send.c: Typecast when necessary. Use the second (escfunc)
      	field now. Some shadow variables.
      	* mail/shell.c: Unsigned.
      	* mail/table.c: Readjust the table to correspond to the signature
      	change in mail.h.
      	* mail/tag.c: Prototype change.
      	* mail/util.c (util_msglist_esccmd): New function.
      	(util_find_entry): Prototype change.  And check return value
      	of getenv().
      	(util_screen_lines): Change atoi() to strtoul().
      	(util_screen_columns): Change atoi() to strtoul().
      	(util_find_env): Signedness.
      	(util_fullpath): Prototype changed(const).
      	(util_slist_to_string):Protorype changed (const).
      	(util_strcat) :Protorype changed (const).
      	(util_tempfile): const.
      	* mail/var.c: Unsignedness, Unused arguments.
      	(var_quote):  Use new function util_msglist_esccmd().
      	* mail/version.c: Unused arguments.
      	* mail/write.c: printf formats.
      	* mail/z.c: Signedness.
      Alain Magloire authored
  3. 14 Sep, 2001 14 commits
  4. 10 Sep, 2001 4 commits
  5. 09 Sep, 2001 7 commits
    • 	by gcc (-Wall, etc ...)
      
      	* mailbox/mbx_mh.c:  Add include for pthread.
      	seq_number is size_t.
      	(_mh_message_name):  The problem here is that asprintf()
      	is a GNU extension.  We want libmailbox to be as independent
      	as possible, so it will not be required for program to be
      	link with libmailutils(it is not even install).  Default to
      	snprintf ().
      	(mh_close): return an int.
      	(_mh_message_insert): n should be size_t.
      Alain Magloire authored
    • Sergey Poznyakoff authored
    • 	* doc/sfrom.c.texi: Line too long.
      	* doc/stream.texi: Line too long.
      Alain Magloire authored
    • Alain Magloire authored
    • Alain Magloire authored
    • 	object was that select() was not cover, meaning it was not possible
      	to check if a stream was {read,write} ready.  The old was to get
      	the fd (stream_get_fd()) and do the select.  Providing,
      	stream_is_readready (stream_t, int timeout);
      	stream_is_writeready (stream_t, int timeout);
      	stream_is_exceptionpending (stream_t, int timeout);
      	stream_is_open (stream_t);
      	Takes care of it.  It will work specially for tcp stream.
      
      	* mailbox2/stream.c: New functions for the select calls:
      	(stream_is_readready): New function.
      	(stream_is_writeready): New function.(stream_t, int timeout);
      	(stream_is_exceptionpending): New function.
      	(stream_is_open): New function.
      	* mailbox2/bstream.c (_bs_readline): Bug was truncating the string
      	to early.
      	(_bs_is_readready): New file.
      	(_bs_is_writeready): New file.
      	(_bs_is_exceptionpending): New file.
      	(_bs_is_open): New file.
      	* mailbox2/fstream.c: stubs for the select functions.
      	* mailbox2/memstream.c: stubs for the select functions.
      	* mailbox2/mapstream.c: stubs for the select functions.
      	* mailbox2/tcpstream.c: stubs for the select functions.
      	* mailbox2/include/mailutils/stream.h: Adjust the prototypes
      	* mailbox2/include/mailutils/sys/stream.h: Adjust the prototypes
      
      	It is better not to put threading (Pthread) code in the low level
      	API.  But instead in mailbox_t framework, where it can be control.
      	* mailbox2/include/mailutils/pop3.h: Adjust the prototypes.
      	* mailbox2/pop3/*.c: Remove threading code.
      Alain Magloire authored
  6. 08 Sep, 2001 3 commits