aboutsummaryrefslogtreecommitdiff
path: root/bin/ed/glbl.c
Commit message (Collapse)AuthorAgeFilesLines
* ed(1): Prevent possible overflows during allocation.Pedro F. Giffuni2016-12-121-1/+1
| | | | | | | | | | Make sure the parameters used for malloc(3) can hold size_t sizes. This should help ed(1) handle bigger data in the future. MFC after: 2 weeks Notes: svn path=/head/; revision=309873
* ed(1): Fix [-Werror=logical-not-parentheses]Eitan Adler2015-04-201-1/+1
| | | | | | | | | | | /usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to theleft hand side of comparison [-Werror=logical-not-parentheses] Obtained from: Dragonfly (1fff89cbaeaa43af720a1f23d9c466b756dd8a58) MFC After: 1 month Notes: svn path=/head/; revision=281758
* bin/ed: use correct type in multiplicationEitan Adler2015-04-181-1/+1
| | | | | | | | | | The result is line_t** so the multiplication should be size * sizeof(line_t*) MFC After: 1 month Notes: svn path=/head/; revision=281719
* Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-10-191-5/+5
| | | | | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible. Notes: svn path=/head/; revision=241720
* Consistently use __FBSDIDDavid E. O'Brien2002-06-301-5/+2
| | | | Notes: svn path=/head/; revision=99109
* o __P has been reovedWarner Losh2002-02-021-11/+6
| | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code Approved by: arch@, new style(9) Notes: svn path=/head/; revision=90109
* o Correctly define rcsid.Mike Barcroft2001-08-061-10/+6
| | | | | | | | | | | | | | o Add consts where appropriate. o Rename some variables that were shadowing global declarations. o Remove register storage-classes. o Make errmsg a const, so we can just set error messages instead of using sprintf/strcpy. o Set WARNS=2 Reviewed by: bde, des Notes: svn path=/head/; revision=81220
* Include sys/types.hBrian Somers2000-10-161-0/+2
| | | | Notes: svn path=/head/; revision=67183
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* sccsid -> rcsid and fix some minor nits.Steve Price1997-08-071-2/+5
| | | | Notes: svn path=/head/; revision=27963
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* -Wall cleaning.Steve Price1996-12-141-2/+2
| | | | Notes: svn path=/head/; revision=20420
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=8855
* You will find enclosed some changes to make gcc -Wall more happy inJoerg Wunsch1995-03-191-3/+3
| | | | | | | | | | | | /usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier) Notes: svn path=/head/; revision=7165
* Added $Id$David Greenman1994-09-241-0/+2
| | | | Notes: svn path=/head/; revision=3044
* use umask 077 for buffer fileAndrew Moore1994-03-231-0/+223
Notes: svn path=/head/; revision=1297