Skip to content

Assorted code cleanups

Alan Coopersmith requested to merge alanc/xmh:misc into master
  • Modernize lseek() calls
  • configure: Use AC_SYS_LARGEFILE to enable large file support
  • Replace sprintf calls with snprintf or XtAsprintf
  • Use _CONST_X_STRING to make libXt declare String as const char *
  • Further reduce the number of -Wdiscarded-qualifiers warnings from 276 to 76
  • Mark Punt as _X_NORETURN
  • Fix 4 of 4 -Wformat-truncation warnings
  • Clear 4 of 6 -Wstringop-truncation warnings
  • Plug memory leaks in error paths of ScanDir()
  • Handle -Wformat-security warnings from the DEBUG macro
  • Convert allocation calls to XtMallocArray or XtReallocArray where appropriate
  • Simplify fallback code for systems without S_ISDIR

Merge request reports