Commit Graph

136805 Commits

Author SHA1 Message Date
christos 2914522ed1 avoid variable shadowing. 2005-05-29 22:13:33 +00:00
christos 57fa3798ac sprinkle const. 2005-05-29 22:12:37 +00:00
christos d675f4acb4 avoid nested variables 2005-05-29 22:12:26 +00:00
christos 9b1843d7c2 - remove casts [to avoid volatile]
- sprinkle const
- avoid shadowed variables
2005-05-29 22:11:28 +00:00
christos 80f7d2107b - sprinkle const.
- avoid variable shadowing.
2005-05-29 22:10:28 +00:00
christos fb4b40b7e8 - sprinkle const.
- add XXXUNCONST to the emul_find() pbuf argument free'ing. XXX: this needs
  an api change.
- avoid variable shadowing.
2005-05-29 22:08:16 +00:00
christos 1473b3a0a1 XXX: Remove fishy volatile. 2005-05-29 22:07:02 +00:00
christos ba7574326e - avoid variable shadowing
- add a lot of const
- remove parameters from functin declarations
2005-05-29 22:03:09 +00:00
christos 3acb3fe622 - Sprinkle const
- Avoid variable shadowing.
- Eliminate some caddr_t abuse.
2005-05-29 22:00:50 +00:00
christos efc217b18f avoid variable shadowing. 2005-05-29 21:58:41 +00:00
christos f9aeac0ab7 - sprinkle const
- avoid variable shadowing.
2005-05-29 21:57:49 +00:00
christos f90bcf3a23 - sprinkle const.
- avoid variable shadowing.
2005-05-29 21:56:35 +00:00
christos c107ef9edc - sprinkle const
- avoid shadowed variables.
2005-05-29 21:55:33 +00:00
christos 9864c6e2cf Sprinkle const. 2005-05-29 21:53:52 +00:00
christos 5385dfa817 sprinkle const. 2005-05-29 21:52:30 +00:00
christos 2ab31527e2 - avoid shadowed variables
- sprinkle const.
2005-05-29 21:43:51 +00:00
christos 6dbf0e5b0a avoid silly static variables that even caused nesting issues, not to mention
reentrancy concerns.
2005-05-29 21:43:09 +00:00
christos ea2d4204b6 - add const
- remove bogus casts
- avoid nested variables
2005-05-29 21:41:23 +00:00
christos 00c7362be7 change casts to proper unconst. mark XXXUNCONST 2005-05-29 21:40:27 +00:00
christos 52d3dc717e - remove local copy of hexdigits.
- sprinkle const
- use mem*() instead of b*()
2005-05-29 21:39:21 +00:00
christos 5e5ed54bfe remove stupid hand-rolled loop and kernel conditional. 2005-05-29 21:38:37 +00:00
christos e73f21e6cb Sprinkle const. 2005-05-29 21:37:02 +00:00
christos 2056c915d2 avoid variable shadowing. 2005-05-29 21:34:23 +00:00
christos 4aeb136dff Add a lot more const. 2005-05-29 21:34:07 +00:00
christos 6bbf0077fc Avoid shadowed variables. 2005-05-29 21:33:01 +00:00
christos daaa1cae60 avoid shadowed variables. 2005-05-29 21:32:37 +00:00
christos 02e608f6b8 Add lots of const. 2005-05-29 21:31:05 +00:00
christos 8eaf136917 - sprinkle const
- change b*() -> mem*()
- rename shadowed variables.
2005-05-29 21:29:43 +00:00
christos d276a994d2 - sprinkle const
- remove unnecessary casts
- change some b*() to mem*()
2005-05-29 21:27:45 +00:00
christos c6c1539491 sprinkle const, remove casts. 2005-05-29 21:26:27 +00:00
christos f6a2fa578d Fix reversed arguments. Found by -Wcast-qual and removing stupid casts. 2005-05-29 21:26:02 +00:00
christos 273df63602 - sprinkle const
- avoid shadow variables.
2005-05-29 21:25:24 +00:00
christos 8789058cbb Sprinkle const. 2005-05-29 21:23:17 +00:00
christos 333e176687 - sprinkle const
- remove unneeded casts
- use more mem*() instead of b*() funcs.
2005-05-29 21:22:52 +00:00
christos 96c6c0f7f6 Sprinkle const. 2005-05-29 21:19:41 +00:00
christos b18a38d24a Another volatile wakeup. 2005-05-29 21:19:12 +00:00
christos af7897eb00 XXX: I don't think this makes sense to be volatile... Remove it. 2005-05-29 21:18:53 +00:00
christos c42477243e make ltsleep and wakeup* vars volatile. 2005-05-29 21:18:25 +00:00
christos f711763983 caddr_t -> void * 2005-05-29 21:17:37 +00:00
christos 68c3df4bde rename shadowed variable. 2005-05-29 21:17:14 +00:00
christos ba7dc4bf1f make the wait channel volatile. 2005-05-29 21:16:44 +00:00
christos 6639138da1 Now we can fix the volatile cast-aways.
Rename some shadowed variables while here.
2005-05-29 21:16:14 +00:00
christos 64f341e8e1 Add an internal _TAILQ macro that allows us to be explicit about volatile
qualifiers and use it in the lock case. This will help us clean the XXX
volatile cast-aways in kern_lock.c
2005-05-29 21:14:40 +00:00
christos 385ca9a533 Remove the bogus const. 2005-05-29 21:12:27 +00:00
christos b636cdfe8a Regen 2005-05-29 21:11:30 +00:00
christos 44285e060d Argument for swapctl cannot be const, since it gets loaded with swap
statistics.
2005-05-29 21:07:49 +00:00
christos e715d2ee98 avoid shadow variables.
remove unneeded casts.
2005-05-29 21:06:33 +00:00
christos 81cb2a7668 - sprinkle const
- avoid shadowed variables.
2005-05-29 21:05:25 +00:00
christos a29d4b2515 - rename variables to avoid shadowing.
- add a few const.
2005-05-29 21:00:29 +00:00
christos e7c15fae96 - sprinkle const
- avoid shadowed variables
- mark bad const use with XXXUNCONST
2005-05-29 20:58:13 +00:00