Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Don't use new as a variable name.



details:   https://anonhg.NetBSD.org/src/rev/bf2fcd6f4262
branches:  trunk
changeset: 802160:bf2fcd6f4262
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 05 05:30:42 2014 +0000

description:
Don't use new as a variable name.

diffstat:

 sys/dev/scsipi/sd.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r daf4ea284987 -r bf2fcd6f4262 sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c       Fri Sep 05 05:30:23 2014 +0000
+++ b/sys/dev/scsipi/sd.c       Fri Sep 05 05:30:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sd.c,v 1.308 2014/08/10 16:44:36 tls Exp $     */
+/*     $NetBSD: sd.c,v 1.309 2014/09/05 05:30:42 matt Exp $    */
 
 /*-
  * Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.308 2014/08/10 16:44:36 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.309 2014/09/05 05:30:42 matt Exp $");
 
 #include "opt_scsi.h"
 
@@ -1272,8 +1272,8 @@
        case DIOCSSTRATEGY:
            {
                struct disk_strategy *dks = addr;
-               struct bufq_state *new;
-               struct bufq_state *old;
+               struct bufq_state *new_bufq;
+               struct bufq_state *old_bufq;
 
                if ((flag & FWRITE) == 0) {
                        return EBADF;
@@ -1283,17 +1283,17 @@
                        return EINVAL;
                }
                dks->dks_name[sizeof(dks->dks_name) - 1] = 0; /* ensure term */
-               error = bufq_alloc(&new, dks->dks_name,
+               error = bufq_alloc(&new_bufq, dks->dks_name,
                    BUFQ_EXACT|BUFQ_SORT_RAWBLOCK);
                if (error) {
                        return error;
                }
                s = splbio();
-               old = sd->buf_queue;
-               bufq_move(new, old);
-               sd->buf_queue = new;
+               old_bufq = sd->buf_queue;
+               bufq_move(new_bufq, old_bufq);
+               sd->buf_queue = new_bufq;
                splx(s);
-               bufq_free(old);
+               bufq_free(old_bufq);
                
                return 0;
            }



Home | Main Index | Thread Index | Old Index