summaryrefslogtreecommitdiffstats
path: root/usr.sbin/raycontrol
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2004-04-04 19:38:08 +0000
committercharnier <charnier@FreeBSD.org>2004-04-04 19:38:08 +0000
commit50b61034c389cdbe7214c7dbdfe8360bffd8775f (patch)
tree4fbe21bc5f4e191ff9234bb70bfa87e256ceed02 /usr.sbin/raycontrol
parent94a732f585e926b1f123522ccd786746c7b34126 (diff)
downloadFreeBSD-src-50b61034c389cdbe7214c7dbdfe8360bffd8775f.zip
FreeBSD-src-50b61034c389cdbe7214c7dbdfe8360bffd8775f.tar.gz
Add FBSDID. err(3) changed to errx(3) because there is no errno message
to print in this context.
Diffstat (limited to 'usr.sbin/raycontrol')
-rw-r--r--usr.sbin/raycontrol/raycontrol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/raycontrol/raycontrol.c b/usr.sbin/raycontrol/raycontrol.c
index 2ff684c..006feda 100644
--- a/usr.sbin/raycontrol/raycontrol.c
+++ b/usr.sbin/raycontrol/raycontrol.c
@@ -28,12 +28,12 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#include <sys/types.h>
#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
+#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
@@ -77,7 +77,7 @@ ray_printhex(u_int8_t *d, char *s, int len)
int i;
if (2 * len + strlen(s) * (len - 1) > sizeof(buf) - 1)
- err(1, "Byte string too long");
+ errx(1, "byte string too long");
sprintf(buf, "%02x", *d);
for (p = buf + 2, i = 1; i < len; i++)
OpenPOWER on IntegriCloud