]> andersk Git - openssh.git/commitdiff
- grange@cvs.openbsd.org 2004/05/04 16:59:32
authordjm <djm>
Fri, 26 Oct 2007 06:40:20 +0000 (06:40 +0000)
committerdjm <djm>
Fri, 26 Oct 2007 06:40:20 +0000 (06:40 +0000)
     [openbsd-compat/sys-queue.h]
     Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.
     This matches our SLIST behaviour and NetBSD's SIMPLEQ as well.
     ok millert krw deraadt

ChangeLog
openbsd-compat/sys-queue.h

index 90697f60ae51ebb89f27e08285c7e1cf9c3711fc..7ec0176b12d76b9f23f33462a315b5e85c37b080 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    - tdeval@cvs.openbsd.org 2004/11/24 18:10:42
      [openbsd-compat/sys-tree.h]
      typo
+   - grange@cvs.openbsd.org 2004/05/04 16:59:32
+     [openbsd-compat/sys-queue.h]
+     Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.
+     This matches our SLIST behaviour and NetBSD's SIMPLEQ as well.
+     ok millert krw deraadt
  - (djm) [regress/sftp-cmds.sh]
    Use more restrictive glob to pick up test files from /bin - some platforms
    ship broken symlinks there which could spoil the test.
index 402343324f97877fe1114bb925d9d381e14dc896..71eec0e8cdec4c9b9eae5de20d727c8ef50deabf 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: queue.h,v 1.25 2004/04/08 16:08:21 henning Exp $      */
+/*     $OpenBSD: queue.h,v 1.26 2004/05/04 16:59:32 grange Exp $       */
 /*     $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $       */
 
 /*
@@ -369,8 +369,8 @@ struct {                                                            \
        (listelm)->field.sqe_next = (elm);                              \
 } while (0)
 
-#define SIMPLEQ_REMOVE_HEAD(head, elm, field) do {                     \
-       if (((head)->sqh_first = (elm)->field.sqe_next) == NULL)        \
+#define SIMPLEQ_REMOVE_HEAD(head, field) do {                  \
+       if (((head)->sqh_first = (head)->sqh_first->field.sqe_next) == NULL) \
                (head)->sqh_last = &(head)->sqh_first;                  \
 } while (0)
 
This page took 0.071644 seconds and 5 git commands to generate.