<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/ed/buf.c, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F14</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F14'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-16T17:54:42Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>ed(1): drop redundant parenthesis.</title>
<updated>2016-12-14T21:14:43Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-12-14T21:14:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f50fae318d6dd4028b6aca25436053c28b07b0ea'/>
<id>urn:sha1:f50fae318d6dd4028b6aca25436053c28b07b0ea</id>
<content type='text'>
These were Left-over from the cleanup in r309936.
</content>
</entry>
<entry>
<title>ed(1): Simplify some checks.</title>
<updated>2016-12-12T20:25:59Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-12-12T20:25:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8bd856de216d9f46e0b028e7479099fb9d56324e'/>
<id>urn:sha1:8bd856de216d9f46e0b028e7479099fb9d56324e</id>
<content type='text'>
The return type for both fread(3) and fwrite(3) cannot be negative, this
renders some checks invalid and variable 'ct' unnecessary.
Also bump 'len' to size_t to avoid signed/unsigned comparison warnings.
</content>
</entry>
<entry>
<title>More -Wmissing-variable-declarations fixes.</title>
<updated>2012-10-19T14:49:42Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-10-19T14:49:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bf70becee6ff4798acdcfd586a88ad38b7b17495'/>
<id>urn:sha1:bf70becee6ff4798acdcfd586a88ad38b7b17495</id>
<content type='text'>
In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
</content>
</entry>
<entry>
<title>Fix warnings found by -Wmising-variable-declarations.</title>
<updated>2012-10-19T05:43:38Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-10-19T05:43:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae824d80f28cd14c0c0ec75076c796e6a369bc18'/>
<id>urn:sha1:ae824d80f28cd14c0c0ec75076c796e6a369bc18</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fix memory leaks in error cases.</title>
<updated>2011-08-27T15:28:57Z</updated>
<author>
<name>Christian Brueffer</name>
<email>brueffer@FreeBSD.org</email>
</author>
<published>2011-08-27T15:28:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae568477e7ceec9658e1ec561b0e885a0dd5f287'/>
<id>urn:sha1:ae568477e7ceec9658e1ec561b0e885a0dd5f287</id>
<content type='text'>
PR:		159011
Submitted by:	Henning Petersen &lt;henning.petersen@t-online.de&gt;
Approved by:	re (kib)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Consistently use __FBSDID</title>
<updated>2002-06-30T05:13:54Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-06-30T05:13:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5eb43ac2f70729e688f03999a2f66d1272e14a6d'/>
<id>urn:sha1:5eb43ac2f70729e688f03999a2f66d1272e14a6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bogusness may have happened using a variable assignment here before, but</title>
<updated>2002-06-20T07:15:55Z</updated>
<author>
<name>Juli Mallett</name>
<email>jmallett@FreeBSD.org</email>
</author>
<published>2002-06-20T07:15:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49d54362f1b55237206bb61dc87fcc0933ab2716'/>
<id>urn:sha1:49d54362f1b55237206bb61dc87fcc0933ab2716</id>
<content type='text'>
proper parens mean that fd is always set by open(2) [in any part of C],
and so we can accurately check for it returning -1, without feeling like
we need to initialise fd to -1 in its declaration.

In other words, fix a stylistic/bogus nit.
</content>
</entry>
<entry>
<title>o __P has been reoved</title>
<updated>2002-02-02T06:36:49Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-02-02T06:36:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7669d0fc4f7d3869e27f94843ca120399a4825e9'/>
<id>urn:sha1:7669d0fc4f7d3869e27f94843ca120399a4825e9</id>
<content type='text'>
o Old-style K&amp;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)
</content>
</entry>
<entry>
<title>File positions are off_t nowdays, not long, so:</title>
<updated>2001-09-01T23:26:40Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2001-09-01T23:26:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7cbfe4d8da4ee47bb2ce38d385a25f4c288113c1'/>
<id>urn:sha1:7cbfe4d8da4ee47bb2ce38d385a25f4c288113c1</id>
<content type='text'>
  fseek -&gt; fseeko
  ftell -&gt; ftello

  NOTE: that fseek/ftell not works for &gt;long offsets per POSIX:

  [EOVERFLOW] For fseek( ), the resulting file offset would be a value which
  cannot be represented correctly in an object of type long.

  [EOVERFLOW] For ftell ( ), the current file offset cannot be represented
  correctly in an object of type long.
</content>
</entry>
</feed>
