lint
[unix-history] / usr / src / sys / deprecated / netdecnet / nsp_output.c
index be86587..8b1c560 100644 (file)
@@ -1,3 +1,4 @@
+/*     nsp_output.c    1.4     82/10/21        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -5,10 +6,10 @@
 #include "../h/protosw.h"
 #include "../h/socket.h"
 #include "../h/socketvar.h"
 #include "../h/protosw.h"
 #include "../h/socket.h"
 #include "../h/socketvar.h"
-#include "../net/dn_systm.h"
-#include "../net/nsp.h"
-#include "../net/nsp_var.h"
-#include "../errno.h"
+#include "../netdecnet/dn_systm.h"
+#include "../netdecnet/nsp.h"
+#include "../netdecnet/nsp_var.h"
+#include <errno.h>
 
 /*
  * NSP output routine: figure out what should be sent and send it.
 
 /*
  * NSP output routine: figure out what should be sent and send it.
@@ -49,13 +50,13 @@ top:
                if (len)
                        bcopy((char *)(n + 1), mtod(np->nb_xmt, char *), len);
                if (tp_output(m, np->n_node)) {
                if (len)
                        bcopy((char *)(n + 1), mtod(np->nb_xmt, char *), len);
                if (tp_output(m, np->n_node)) {
-                       m_free(m);
+                       (void) m_free(m);
                        return (0);
                }
                np->n_flags &= ~(NF_INTAVAIL|NF_OTHACK);
                np->n_flags |= NF_OTHSENT;
                if (len)
                        return (0);
                }
                np->n_flags &= ~(NF_INTAVAIL|NF_OTHACK);
                np->n_flags |= NF_OTHSENT;
                if (len)
-                       m_free(np->nb_xmt);
+                       (void) m_free(np->nb_xmt);
                nsp_insrtq(m, np->nt_oth);
                goto top;
        }
                nsp_insrtq(m, np->nt_oth);
                goto top;
        }
@@ -78,7 +79,7 @@ top:
                n->nsp_lsflags = NSPLS_INTREQ | NSPLS_ON;
                n->nsp_fcval = 1;
                if (tp_output(m, np->n_node)) {
                n->nsp_lsflags = NSPLS_INTREQ | NSPLS_ON;
                n->nsp_fcval = 1;
                if (tp_output(m, np->n_node)) {
-                       m_free(m);
+                       (void) m_free(m);
                        return (0);
                }
                np->n_flags &= ~NF_OTHACK;
                        return (0);
                }
                np->n_flags &= ~NF_OTHACK;
@@ -105,7 +106,7 @@ top:
                n->nsp_lsflags = NSPLS_DATREQ | NSPLS_ON;
                n->nsp_fcval = np->nf_locdat;
                if (tp_output(m, np->n_node)) {
                n->nsp_lsflags = NSPLS_DATREQ | NSPLS_ON;
                n->nsp_fcval = np->nf_locdat;
                if (tp_output(m, np->n_node)) {
-                       m_free(m);
+                       (void) m_free(m);
                        return (0);
                }
                np->n_flags &= ~NF_OTHACK;
                        return (0);
                }
                np->n_flags &= ~NF_OTHACK;
@@ -129,11 +130,11 @@ top:
                n->nsp_srcaddr = np->n_loc;
                n->nsp_acknum = NSPA_ACK | np->na_xmtoth;
                if (tp_output(m, np->n_node)) {
                n->nsp_srcaddr = np->n_loc;
                n->nsp_acknum = NSPA_ACK | np->na_xmtoth;
                if (tp_output(m, np->n_node)) {
-                       m_free(m);
+                       (void) m_free(m);
                        return (0);
                }
                np->n_flags &= ~NF_OTHACK;
                        return (0);
                }
                np->n_flags &= ~NF_OTHACK;
-               m_free(m);
+               (void) m_free(m);
                goto top;
        }
 
                goto top;
        }
 
@@ -168,11 +169,11 @@ top:
                n->nsp_srcaddr = np->n_loc;
                n->nsp_acknum = NSPA_ACK | np->na_xmtdat;
                if (tp_output(m, np->n_node)) {
                n->nsp_srcaddr = np->n_loc;
                n->nsp_acknum = NSPA_ACK | np->na_xmtdat;
                if (tp_output(m, np->n_node)) {
-                       m_free(m);
+                       (void) m_free(m);
                        return (0);
                }
                np->n_flags &= ~NF_DATACK;
                        return (0);
                }
                np->n_flags &= ~NF_DATACK;
-               m_free(m);
+               (void) m_free(m);
                goto top;
        }
 
                goto top;
        }