Merge from mainline.
[bpt/emacs.git] / lib-src / ChangeLog
index 01352ad..958539c 100644 (file)
@@ -1,3 +1,30 @@
+2011-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       New file "lib/min-max.h".
+       * ebrowse.c (min, max): Define them by including <min-max.h>
+       instead of defining it ourselves.
+       * pop.c (min): Likewise.
+
+       * movemail.c (popmail): Report fchown failure instead of ignoring it.
+       But if the file already has the right ownership, don't worry about it.
+
+       * make-docfile.c (input_buffer): Rename variables to avoid shadowing.
+       * test-distrib.c (buf): Make this local, to avoid shadowing.
+
+       * movemail.c (main, pop_retr): Rename locals to avoid shadowing.
+       (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars.
+       (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):
+       Remove unused macros.
+       * pop.c (index): Remove unused macro.
+       (KPOP_PORT): Define only if KERBEROS is defined.
+
+       Declare file-scope functions and variables static if not exported.
+       This is more consistent, and is nicer with gcc -Wstrict-prototypes.
+       * ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
+       * profile.c, test-distrib.c, update-game-score.c:
+       Declare non-'main' functions and variables to be static.
+       * ebrowse.c: Omit redundant function prototypes.
+
 2011-02-21  Eli Zaretskii  <eliz@gnu.org>
 
        * makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))