aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/iplist.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-24 09:29:17 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-24 09:29:17 +0000
commit70ee81ff6ba03e882c77fba9357f803c13982d31 (patch)
tree1634b1e1f6b1899192dae079bbf6eeccc9d4dbd5 /usr.sbin/ppp/iplist.c
parentf9925914f1371e9814b482f32c58a43266f413a9 (diff)
downloadsrc-70ee81ff6ba03e882c77fba9357f803c13982d31.tar.gz
src-70ee81ff6ba03e882c77fba9357f803c13982d31.zip
Cosmetic (style):
sizeof(var) -> sizeof var sizeof type -> sizeof(type) Suggested by: J Wunsch <j@uriah.heep.sax.de>
Notes
Notes: svn path=/head/; revision=31962
Diffstat (limited to 'usr.sbin/ppp/iplist.c')
-rw-r--r--usr.sbin/ppp/iplist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/iplist.c b/usr.sbin/ppp/iplist.c
index e74add760dca..6e6ecd1f25d9 100644
--- a/usr.sbin/ppp/iplist.c
+++ b/usr.sbin/ppp/iplist.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iplist.c,v 1.2 1997/12/21 12:11:06 brian Exp $
+ * $Id: iplist.c,v 1.3 1997/12/23 22:38:54 brian Exp $
*/
#include <sys/types.h>
@@ -149,8 +149,8 @@ iplist_next(struct iplist *list)
int
iplist_setsrc(struct iplist *list, const char *src)
{
- strncpy(list->src, src, sizeof(list->src)-1);
- list->src[sizeof(list->src)-1] = '\0';
+ strncpy(list->src, src, sizeof list->src - 1);
+ list->src[sizeof list->src - 1] = '\0';
list->cur.srcptr = list->src;
do {
if (iplist_nextrange(list))
@@ -211,7 +211,7 @@ iplist_ip2pos(struct iplist *list, struct in_addr ip)
int f, result;
result = -1;
- memcpy(&cur, &list->cur, sizeof(cur));
+ memcpy(&cur, &list->cur, sizeof cur);
for (iplist_first(list), f = 0; f < list->nItems; f++)
if (iplist_next(list).s_addr == ip.s_addr) {
@@ -219,6 +219,6 @@ iplist_ip2pos(struct iplist *list, struct in_addr ip)
break;
}
- memcpy(&list->cur, &cur, sizeof(list->cur));
+ memcpy(&list->cur, &cur, sizeof list->cur);
return result;
}