1. 22 Feb, 2011 1 commit
  2. 21 Feb, 2011 5 commits
  3. 26 Jan, 2011 1 commit
  4. 25 Jan, 2011 1 commit
  5. 23 Jan, 2011 2 commits
  6. 15 Jan, 2011 1 commit
  7. 09 Jan, 2011 1 commit
  8. 02 Jan, 2011 1 commit
  9. 03 Oct, 2010 1 commit
    • Dan Nicolaescu's avatar
      Fix compilation warnings. · 728a982d
      Dan Nicolaescu authored
      * lib-src/test-distrib.c (cool_read):
      * lib-src/movemail.c (main, concat):
      * lib-src/make-docfile.c (scan_file, write_c_args):
      * emacsclient.c	(get_server_config): Fix -Wconversion warning.
      (egetenv): Move conditional definition earlier.
      (progname): Use const.
      * lib-src/sorted-doc.c (xstrdup): Use const.
      728a982d
  10. 11 Aug, 2010 1 commit
    • Jan D's avatar
      Fix warnings produced by compiling with -Wwrite_strings (i.e. use const char *). · 988e88ab
      Jan D authored
      * b2m.c (concat, fatal): Use const char*.
      (main): Don't assign labels a string literal.
      
      * ebrowse.c (struct member): filename, def_filename is const.
      (struct sym): filename, sfilename is const.
      (struct kw): name is const.
      (add_sym, yyerror, token_string, insert_keyword, main): Use const char*.
      
      * emacsclient.c (message, sock_err_message, send_to_emacs)
      (quote_argument, set_local_socket)
      (start_daemon_and_retry_set_socket): Use const char*.
      
      * etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
      (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
      (Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
      (Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
      (Fortran_suffixes, Fortran_help, HTML_suffixes,  HTML_help)
      (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
      (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
      (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
      (Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
      (PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
      (Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
      (Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
      (no_lang_help, print_language_names)
      (get_language_from_interpreter, get_language_from_filename)
      (init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
      (TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
      (concat): Use const char*.
      
      * make-docfile.c (error, fatal, scan_c_file, scan_lisp_file): Use
      const char *.
      
      * movemail.c (fatal, error, concat): Use const char *.
      
      * pop.c (pop_multi_first, socket_connection, sendline): Use conat char*.
      
      * pop.h (pop_multi_first): Use const char *.
      (_ARGS): Remove.
      
      * sorted-doc.c (error, fatal, states): Use const char *.
      
      * update-game-score.c (get_prefix, write_scores, main): Use const char*.
      988e88ab
  11. 24 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Add NO_RETURN specifiers to functions in lib-src. · 68441b90
      Dan Nicolaescu authored
      * lib-src/update-game-score.c (usage):  Add NO_RETURN specifier.
      * lib-src/movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
      * lib-src/make-docfile.c (fatal):
      * lib-src/hexl.c (usage):
      * lib-src/fakemail.c (fatal):
      * lib-src/etags.c (fatal, suggest_asking_for_help, pfatal):
      * lib-src/emacsclient.c (fatal):
      * lib-src/b2m.c (fatal): Likewise.
      68441b90
  12. 11 Jul, 2010 1 commit
    • Andreas Schwab's avatar
      Use strchr, strrchr instead of index, rindex · 8966b757
      Andreas Schwab authored
      * callint.c (Fcall_interactively): Use strchr, strrchr instead of
      index, rindex.
      * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
      * editfns.c (Fuser_full_name, Fformat): Likewise.
      * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
      * fileio.c (Ffile_symlink_p): Likewise.
      * filelock.c (current_lock_owner): Likewise.
      * font.c (font_parse_name, font_parse_family_registry): Likewise.
      * fontset.c (fontset_pattern_regexp): Likewise.
      * lread.c (read1): Likewise.
      * sysdep.c (init_system_name): Likewise.
      * xfns.c (select_visual): Likewise.
      * s/hpux10-20.h (index, rindex): Don't define.
      * s/ms-w32.h (index): Likewise.
      * s/usg5-4.h: Likewise.
      
      * sed2v2.inp (HAVE_INDEX, HAVE_RINDEX): Don't edit.
      (HAVE_STRCHR, HAVE_STRRCHR): Edit to 1.
      
      * emacsclient.c (set_local_socket): Use strchr, strrchr instead of
      index, rindex.
      * movemail.c (mail_spool_name, popmail): Likewise.
      * pop.c (pop_list): Likewise.
      
      * CPP-DEFINES (HAVE_INDEX, HAVE_RINDEX): Remove.
      
      * configure.in: Don't check for index and rindex, check for strchr
      and strrchr.  Define strchr and strrchr as index and rindex,
      resp., in src/config.h if not available.
      8966b757
  13. 06 Jul, 2010 2 commits
    • Andreas Schwab's avatar
      Clean up movemail source · 1725ae55
      Andreas Schwab authored
      	* movemail.c: Add MAIL_USE_POP around prototypes.
      	Include <string.h> if HAVE_STRING_H.
      	(strerror): Only declare if !HAVE_STRERROR.
      	(fatal): Make static.
      	(error): Likewise.
      	(pfatal_with_name): Likewise.
      	(pfatal_and_delete). Likewise.
      	(concat): Likewise.
      	(xmalloc): Likewise.
      	(popmail): Likewise.
      	(pop_retr): Likewise.
      	(mbx_write): Likewise.
      	(mbx_delimit_begin): Likewise.
      	(mbx_delimit_end): Likewise.
      1725ae55
    • Andreas Schwab's avatar
      e2ad23ef
  14. 03 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · 873fbd0b
      Dan Nicolaescu authored
      * lib-src/update-game-score.c: Convert function definitions to standard C.
      * lib-src/sorted-doc.c:
      * lib-src/profile.c:
      * lib-src/pop.c:
      * lib-src/movemail.c:
      * lib-src/make-docfile.c:
      * lib-src/hexl.c:
      * lib-src/fakemail.c:
      * lib-src/etags.c:
      * lib-src/ebrowse.c:
      * lib-src/digest-doc.c:
      * lib-src/b2m.c: Likewise.
      873fbd0b
  15. 02 Jul, 2010 1 commit
    • Jan D's avatar
      Remove __P and P_ from .c and .m files and definition of P_ · f57e2426
      Jan D authored
      * lisp.h:
      * atimer.h: Remove define for P_.
      
      * alloc.c: Remove __P and P_ from .c and .m files.
      * atimer.c:
      * buffer.c:
      * callint.c:
      * category.c:
      * charset.c:
      * chartab.c:
      * cm.c:
      * coding.c:
      * composite.c:
      * data.c:
      * dired.c:
      * dispnew.c:
      * doc.c:
      * editfns.c:
      * emacs.c:
      * eval.c:
      * fileio.c:
      * filelock.c:
      * fns.c:
      * font.c:
      * fontset.c:
      * frame.c:
      * ftfont.c:
      * ftxfont.c:
      * gmalloc.c:
      * gtkutil.c:
      * image.c:
      * indent.c:
      * intervals.c:
      * keyboard.c:
      * keymap.c:
      * lread.c:
      * marker.c:
      * menu.c:
      * minibuf.c:
      * print.c:
      * process.c:
      * scroll.c:
      * search.c:
      * sound.c:
      * strftime.c:
      * syntax.c:
      * sysdep.c:
      * term.c:
      * terminal.c:
      * textprop.c:
      * unexalpha.c:
      * w32console.c:
      * w32fns.c:
      * w32font.c:
      * w32menu.c:
      * w32term.c:
      * w32uniscribe.c:
      * window.c:
      * xdisp.c:
      * xfaces.c:
      * xfns.c:
      * xfont.c:
      * xftfont.c:
      * xmenu.c:
      * xselect.c:
      * xterm.c: Likewise.
      
      * ebrowse.c: Remove P_ and __P.
      * etags.c:
      * movemail.c:
      * pop.c:
      * update-game-score.c: Likewise.
      f57e2426
  16. 24 Jun, 2010 1 commit
  17. 02 Apr, 2010 3 commits
    • Chong Yidong's avatar
      Fix permissions handling (CVE-2010-0825). · 51a91f9d
      Chong Yidong authored
      * movemail.c (main): Check return values of setuid.  Avoid
      possibility of symlink attack when movemail is setgid mail
      (CVE-2010-0825).
      51a91f9d
    • Chong Yidong's avatar
      Fix permissions handling (CVE-2010-0825). · c8f19d81
      Chong Yidong authored
      * movemail.c (main): Check return values of setuid.  Avoid
      possibility of symlink attack when movemail is setgid mail
      (CVE-2010-0825).
      c8f19d81
    • Dan Nicolaescu's avatar
      Remove extern errno declarations. · 42a2c622
      Dan Nicolaescu authored
      * xterm.c:
      * xrdb.c:
      * w32term.c:
      * unexec.c:
      * unexaix.c:
      * sysdep.c:
      * process.c:
      * lread.c:
      * keyboard.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c (main):
      * ecrt0.c:
      * dispnew.c:
      * callproc.c:
      * buffer.c: Remove errno extern declarations.
      * s/netbsd.h (NEED_ERRNO): Remove.
      
      * movemail.c:
      * etags.c:
      * emacsclient.c: Remove extern errno declarations.
      42a2c622
  18. 13 Jan, 2010 1 commit
  19. 04 Mar, 2009 1 commit
  20. 13 Feb, 2009 1 commit
  21. 11 Feb, 2009 1 commit
  22. 10 Feb, 2009 1 commit
  23. 08 Jan, 2009 1 commit
  24. 01 Jan, 2009 1 commit
  25. 12 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was · bba104c1
      Dan Nicolaescu authored
      always defined as int.
      
      * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
      * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
      * s/gnu-linux.h (HAVE_WAIT_HEADER):
      * s/freebsd.h (HAVE_WAIT_HEADER):
      * s/bsd-common.h (HAVE_UNION_WAIT):
      * s/aix4-2.h (HAVE_WAIT_HEADER):
      * m/mips.h (HAVE_UNION_WAIT):
      * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
      (COFF, static): Do not define, they are undefined later in the file.
      
      * process.c (update_status): Don't use a union.
      (status_convert):
      (sigchld_handler): Use int instead of WAITTYPE.
      
      * movemail.c (main): Use int instead of WAITTYPE.
      bba104c1
  26. 09 May, 2008 1 commit
  27. 24 Feb, 2008 1 commit
    • Dan Nicolaescu's avatar
      * configure.in: Remove references to obsolete variables and · 9d2818d6
      Dan Nicolaescu authored
      systems.
      * configure: Regenerate.
      
      * Makefile.in (NO_SHORTNAMES):
      * emacsclient.c (NO_SHORTNAMES):
      * fakemail.c (NO_SHORTNAMES):
      * make-docfile.c (NO_SHORTNAMES):
      * movemail.c (NO_SHORTNAMES):
      * pop.c (NO_SHORTNAMES): Remove references to obsolete variable.
      
      * config.nt (SHORTNAMES): Remove reference to obsolete variable.
      
      * s/vms4-0.h:
      * s/vms4-2.h:
      * s/vms4-4.h:
      * s/vms5-5.h: Remove, unused.
      
      * s/irix5-2.h:
      * s/irix6-0.h:
      * s/riscos5.h:
      * s/mach-bsd4-3.h:
      * m/mips4.h: Remove files for obsolete systems
      
      * Makefile.in:
      * filelock.c:
      * unexmips.c:
      * m/hp9000s300.h:
      * m/iris4d.h:
      * s/aix3-1.h:
      * s/hpux.h:
      * s/msdos.h:
      * s/usg5-0.h:
      * s/usg5-2-2.h:
      * s/usg5-2.h:
      * s/usg5-3.h: Remove references to obsolete variables.
      
      * s/irix5-0.h: Remove, move all the contents ...
      * s/irix6-5.h: ... here.  Simplify.
      * config.in: Regenerate.
      9d2818d6
  28. 05 Feb, 2008 1 commit
  29. 18 Jan, 2008 1 commit
  30. 13 Jan, 2008 1 commit
    • Dan Nicolaescu's avatar
      * movemail.c: · e39a993c
      Dan Nicolaescu authored
      * make-docfile.c: Remove reference to symbols defined by systems
      not supported anymore: MAC_OS8, XENIX and STRIDE.
      
      * (src/m/mips.h):
      * (src/m/intel386.h):
      * callproc.c:
      * config.in:
      * ecrt0.c:
      * emacs.c:
      * fileio.c:
      * frame.c:
      * getpagesize.h:
      * keyboard.c:
      * lread.c:
      * process.c:
      * puresize.h:
      * sysdep.c:
      * systty.h:
      * syswait.h:
      * unexec.c:
      * xdisp.c:
      * alloc.c: Remove code containing references to symbols defined by
      unsupported systems.
      e39a993c
  31. 07 Jan, 2008 1 commit
  32. 25 Jul, 2007 1 commit