Commit Graph

15697 Commits

Author SHA1 Message Date
wiz 711cb78a48 Fix capitalization and typo, from Bug Hunting. 2012-04-06 11:36:04 +00:00
wiz 5eee512564 Fix typo, from Bug Hunting. 2012-04-06 11:35:39 +00:00
christos 5662c2716e trailing whitespace police. 2012-04-04 17:47:03 +00:00
joerg b757af438b Disable new -Wstring-plus-int warning where needed for now.
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
agc 76f4f39125 Add a pthread cancel stub for sigwait, following Onno van der Linden's
analysis in PR 45131.  Kindly tested by Hisashi T Fujinaka (using csup
as the test case) with a successful outcome.

OK martin@
2012-04-04 06:29:16 +00:00
agc 6578e3b1a4 fix a couple of typos 2012-04-02 22:06:47 +00:00
rmind 5f6fa3d5ee Add NPF config retrieval routines. 2012-04-01 19:16:24 +00:00
christos df08f9313b nbytes is now size_t 2012-03-29 21:21:04 +00:00
christos 781d83f527 make constant explicitly unsigned 2012-03-29 19:27:05 +00:00
christos ad6ae348d8 fix lint, should nbytes be changed to size_t to match with the struct passed? 2012-03-29 19:26:21 +00:00
christos 4a263fd8ca PR/46279: Dr. W. Stukenbrock: Off-by-one in buffer length check and make sure
that the password fits in the supplied buffer.
2012-03-29 14:43:58 +00:00
christos b66595809f The flush function makes the tests fail. So undo it for now until we decide
if the tests are wrong or the flushing is wrong.
2012-03-29 14:27:33 +00:00
christos 2ad3ddd659 PR?40728: W. Stukenbrock: Fix various issues with NIS-netgroups in users
and groups.
2012-03-29 13:05:10 +00:00
christos 61a429c0b1 only provide compatibility i/o functions to the ones provided by the caller. 2012-03-28 15:21:11 +00:00
christos de001ba2a5 - widen the internal read and write calls to match the syscalls
- add funopen2() which provides access to flush() and the wider calls.
- make use of the new flush call in fmemopen()
2012-03-27 15:05:42 +00:00
christos 9bd5031289 cast RHS of >>= operation to unsigned int 2012-03-25 19:53:41 +00:00
christos 9c9d360d27 - change from size_t to unsigned int because we don't need the extra width
- cast to unsigned int results of quad ops
2012-03-25 19:53:18 +00:00
christos a105f91c05 PR/41558: Stathis Kamperis: Treat a backslash followed by NUL as NUL, instead
of a backslash if FNM_NOESCAPE is not set. According to TOG: a backslash in
a pattern followed by any other character, will match that second character
in the string.
2012-03-25 16:31:23 +00:00
joerg 0e8643658c Don't pass assembler flags to genassym, it doesn't compile. 2012-03-25 06:55:19 +00:00
christos fac360ff28 From: Jilles Tjoelker: Add a mapping for the cursor delete key 2012-03-24 20:09:30 +00:00
christos d067817eea From Jilles Tjoelker:
Do not move the cursor for ed-delete-next-char in emacs mode.
This makes ed-delete-next-char suitable for mapping to the <Delete> key.
Behaviour in vi mode is unchanged (for 'x').
2012-03-24 20:08:43 +00:00
matt 05c78a4552 Fix a bug introduced by lint cleanup. 2012-03-24 00:06:20 +00:00
njoly 28247a8661 Use major.minor for NetBSD versions. 2012-03-23 18:08:34 +00:00
skrll 5b9a421677 Shut lint up.
From he@
2012-03-23 09:34:09 +00:00
joerg e057b2281a Use __printflike. 2012-03-22 23:46:49 +00:00
joerg 4cd46b4ac8 Add some more __dead as exposed by the recent WARN bumps. 2012-03-22 22:59:43 +00:00
joerg 5df6c2ea3b Format the diagnostic with vasprintf once and use plain syslog instead
of messing with format strings.
2012-03-22 22:58:15 +00:00
drochner e917deee9c don't reuse a dynamically allocated stack if a fixed one is requested 2012-03-22 20:01:18 +00:00
christos 1bb11e66cb vax-specific lint fixes. 2012-03-22 17:32:21 +00:00
christos c5142b6c92 add constcond, make shifts unsigned 2012-03-22 15:34:14 +00:00
christos 12968661bf get rid of the cheesy BAD macros 2012-03-22 14:18:34 +00:00
he 4efbcb2b62 Make this lint-free (only built for real for the __sh__ ports):
* Mark some code after goto as /* NOTREACHED */
 * Add a cast for file size (off_t) to size_t to avoid warning about
   possibly losing bits.
 * Avoid a "pointer casts may be troublesome" warning from lint
   by doing a cast via "void *" instead of directly to "struct
   coff_filehdr *".
2012-03-22 13:42:36 +00:00
he 99339bb8f4 Add a pair of casts to silence lint about conversion possibly losing bits. 2012-03-22 13:25:45 +00:00
he 6f8da331f6 A few modifications to make this build for vax:
* The decpt variable is only used if INFNAN_CHECK, which isn't defined
   for vax.
 * Use a cast to avoid warning about shift of a signed variable.
 * Mark a condition as (potentially) a constant condition.
2012-03-22 13:15:48 +00:00
he 648512f83d A few fixes to make this build for vax:
* The fivesbits[] variable is not used for vax
 * The decpt variable is only used if INFNAN_CHECK, which isn't
   defined for vax
2012-03-22 13:09:12 +00:00
he ff8e71502d Convert to use c89 function declaration. 2012-03-22 13:02:15 +00:00
skrll d66dab05c4 Shut lint up about dp.
From he@
2012-03-22 12:31:32 +00:00
he 1c46a18eb1 Follow the pattern from powerpc, make lint happy. 2012-03-22 09:32:04 +00:00
he 2bf75ee57f Add a void to make function declaration c89. 2012-03-22 08:56:52 +00:00
he b722f9f3bf Add a cast of the shift count to int32_t, so that we don't try
to do int32_t << long, since ANSI C doesn't perform "balancing"
before the shift operation according to lint.  Should not make a
difference, offset is limited to 0..3 anyway.
2012-03-22 08:54:48 +00:00
he 2df8a64968 Make 'i' unsigned to avoid signed/unsigned comparison warnings from lint. 2012-03-22 08:52:22 +00:00
matt 3fb1a336a3 Make lint happy.
While here, make sure the top of stack is aligned properly.
2012-03-22 05:36:50 +00:00
christos a79bdcfa71 c89 prototypes 2012-03-21 21:37:29 +00:00
he 638c9cf502 Add some casts to get rid of "bitwise op on signed value is non-portable"
warning from lint.
2012-03-21 20:07:52 +00:00
he 2d215eaf5b Use c89 function declaration. 2012-03-21 20:04:57 +00:00
christos 2fab93ccbb c89 definitions 2012-03-21 15:32:26 +00:00
christos acf4d8064f welcome to WARNS=5 2012-03-21 14:52:40 +00:00
christos d703a14882 rename umax2s->size_t2s function per apb's request. 2012-03-21 14:32:22 +00:00
christos b2b93bb9ff fix argument order. 2012-03-21 14:28:32 +00:00
christos d9285aa434 unsigned char portability casts 2012-03-21 14:19:15 +00:00