aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-24 14:31:03 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-24 14:31:03 +0000
commit8c0c3e6dc4b2f7ba94771ff1fcf6adc332f42fde (patch)
tree2057c46f81d58277a901b55128f603de43468c20
parentc3f556889baf6269787fa847470c46ef2a378c85 (diff)
downloadglibc-8c0c3e6dc4b2f7ba94771ff1fcf6adc332f42fde.zip
glibc-8c0c3e6dc4b2f7ba94771ff1fcf6adc332f42fde.tar.gz
glibc-8c0c3e6dc4b2f7ba94771ff1fcf6adc332f42fde.tar.bz2
Update.
* termios/cfsetspeed.c: Make code cleaner and add missing const. Patch by Joe Keane <jgk@jgk.org>.
-rw-r--r--ChangeLog3
-rw-r--r--termios/cfsetspeed.c8
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 6eb64da..4588896 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1998-04-24 Ulrich Drepper <drepper@cygnus.com>
+ * termios/cfsetspeed.c: Make code cleaner and add missing const.
+ Patch by Joe Keane <jgk@jgk.org>.
+
* inet/rcmd.c (__ivaliduser): Check buf for being NULL before
free()ing.
diff --git a/termios/cfsetspeed.c b/termios/cfsetspeed.c
index 91f4201..d183f45 100644
--- a/termios/cfsetspeed.c
+++ b/termios/cfsetspeed.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1993, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1993, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,11 +20,13 @@
#include <errno.h>
#include <stddef.h>
-static struct speed_struct
+struct speed_struct
{
speed_t value;
speed_t internal;
-} speeds[] =
+};
+
+static const struct speed_struct speeds[] =
{
#ifdef B0
{ 0, B0 },