Commit Graph

138020 Commits

Author SHA1 Message Date
christos acdcf67bb0 constify. 2005-06-27 02:56:20 +00:00
lukem 9ba85beae2 the make(1) changes were backed out; remove entry from here 2005-06-27 02:51:52 +00:00
christos 9be35a638f more const. 2005-06-27 02:49:32 +00:00
christos e0dd0ca293 constify 2005-06-27 02:48:28 +00:00
thorpej b651fb886d Sprinkle some static. 2005-06-27 02:29:32 +00:00
thorpej 154a970ff4 Small whitespace tweak. 2005-06-27 02:23:26 +00:00
thorpej e569facced Use ANSI function decls. 2005-06-27 02:19:48 +00:00
christos e4b2253c50 add const. 2005-06-27 02:05:30 +00:00
christos 58874431a5 add const 2005-06-27 02:03:28 +00:00
christos cb1c4f11bb sprinkle const. 2005-06-27 01:55:52 +00:00
christos 64747563b4 sprinkle const 2005-06-27 01:37:32 +00:00
christos c236bddb0f sprinkle const. 2005-06-27 01:25:35 +00:00
fvdl c14a80e11b Don't define the debug variable here; it is declared statically elsewhere. 2005-06-27 01:23:59 +00:00
christos 2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
christos 10a02919cc Add some more const so that this compiles again. 2005-06-27 00:46:04 +00:00
lukem 2bf924f405 Restore the rework from rev 1.115 and expand the description of .OBJDIR
to document the behaviour that is currently in use (the "./obj" and
"/usr/obj/`pwd`" behaviour).
Hopefully the existing .OBJDIR behaviour is clearer now.
2005-06-27 00:17:08 +00:00
christos 983e538712 Collect externs into one file instead of duplicating them everywhere. 2005-06-26 23:49:31 +00:00
christos dd8cdde018 Fix compiler warnings. 2005-06-26 23:34:26 +00:00
christos 042582c125 more const. 2005-06-26 23:04:19 +00:00
christos 97880e96ed constify. 2005-06-26 23:01:39 +00:00
christos 6499bd69c1 constify. 2005-06-26 22:45:50 +00:00
christos 79f5327ef7 This is the textbook example of why global variables are harmful. Fix multiple
shadowing warnings for variables with the same name used both in global and
local context. Really this needs either to rename all the global variables
something different (prefix them with gl_ or something) or even better get
rid of them altogether.
2005-06-26 22:36:55 +00:00
christos 47f6845101 add a const. 2005-06-26 22:34:38 +00:00
christos d0ef8ba60e - need string.h
- add const.
2005-06-26 22:34:12 +00:00
christos 00baafe7d1 - need <string.h>
- cast arguments to ctype is*() functions to unsigned char.
2005-06-26 22:33:31 +00:00
christos 7674b13eed add const 2005-06-26 22:32:47 +00:00
christos d360ba5ea6 make some function declarations that are used both in the kernel and userland
visible for both.
2005-06-26 22:32:30 +00:00
erh 1b6f9cc263 Make sure there is a valid transmit key, before trying to use information
about it.  Fixes a crash when configuring wi0.
2005-06-26 21:51:37 +00:00
christos a9274bf3fb Don't abuse writing to const strings. We can pass const strings to this,
and we write to them. Allocate memory instead.
2005-06-26 21:43:33 +00:00
christos dea4bd707c const poisoning. 2005-06-26 21:28:15 +00:00
christos bbfb3b7295 Names could be const. 2005-06-26 21:18:00 +00:00
christos 7642adc771 match the declarations in libipsec.h 2005-06-26 21:14:37 +00:00
christos fba8d9ce60 Fix some of the pointer abuse, and add some const. Not done yet. 2005-06-26 21:14:08 +00:00
christos 305da7ae35 de-lint some pointer casts. 2005-06-26 20:55:44 +00:00
christos 286ad449da sprinkle little const. 2005-06-26 20:47:08 +00:00
seb 1bc84e0800 Regen. 2005-06-26 20:04:10 +00:00
seb 4b6c4203cc Add ATI Radeon Mobility X600.
Add Mobile Intel 915PM/GM/GMS and 910GML Express Chipset.
2005-06-26 20:02:48 +00:00
elad 8ebc2e9bee From marius@openbsd:
Add an exec message so that whenever a set-uid/gid process executes a new
image which we may control, the exec does not go by unnoticed.
2005-06-26 19:58:29 +00:00
he 5b718ea54c Adapt to compiling with -Wcast-qual by adding a const and a couple
of __volatile__ uses.
2005-06-26 19:57:30 +00:00
he a05900d94d Fix -Wcast-qual warnings by adding two __UNCONST() uses and removing
two /* discard const */ comments.
2005-06-26 19:56:42 +00:00
he 5a196eb1ff Pass NULL as second argument to config_rootfound() instead of a string. 2005-06-26 19:55:45 +00:00
he f289c3cf55 Placate -Wshadow by renaming a local variable. 2005-06-26 19:55:14 +00:00
he 3e86f3b06f Rename macro-local variables so that __read_1() and __write_1() does
not use the same variable name.  Fixes -Wshadow warning.
2005-06-26 19:54:42 +00:00
christos 6310b59691 sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
christos a397ec1f77 warns=3
- remove param names from function decls
- sprinkle const
- rename shadowed variables
- XXX: there is a lot of fishy __UNCONST going on.
2005-06-26 19:09:00 +00:00
thorpej d026a7c623 Restructure this Makefile to make it easier to comment out subdirectories. 2005-06-26 17:47:49 +00:00
christos b2d91da0d4 WARNS=3 2005-06-26 17:10:28 +00:00
thorpej 011cf1cb73 Comment out I486_CPU -- it only adds more code, and I386_CPU will work
just fine on any system.
2005-06-26 17:07:04 +00:00
thorpej 1fc5e9b8c4 _nsdispatching needs to count, not just be 1 or 0. Also shuffle around
its use a little to eliminate some duplication.
2005-06-26 16:27:36 +00:00
rpaulo 36e94843e3 Correct RCS Ids. 2005-06-26 13:52:58 +00:00