mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ng_mppc(4):: basic readability cleanups.
In particular use __unreachable() to appease static analyzers. No functional change. CID: 1356591 MFC after: 3 days
This commit is contained in:
parent
c44b4795a9
commit
a4bf2e2d49
2 changed files with 3 additions and 2 deletions
|
|
@ -232,8 +232,9 @@ int MPPC_Compress(u_char **src, u_char **dst, u_long *srcCnt, u_long *dstCnt, ch
|
|||
} else if (off < 8192) { /* 16-bit offset; 320 <= offset < 8192 */
|
||||
putbits16(*dst, 0xc000|(off-320), 16, &olen, &l);
|
||||
} else { /* NOTREACHED */
|
||||
__unreachable();
|
||||
rtn &= ~MPPC_OK;
|
||||
return rtn;
|
||||
return (rtn);
|
||||
}
|
||||
|
||||
/* Encode length of match. */
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ int MPPC_Decompress(u_char **src, u_char **dst, u_long *srcCnt, u_long *dstCnt,
|
|||
rtn &= ~MPPC_OK;
|
||||
return (rtn);
|
||||
}
|
||||
} else { /* NOTREACHED */
|
||||
} else { /* This shouldn't happen. */
|
||||
rtn &= ~MPPC_OK;
|
||||
return (rtn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue