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
a03db12076
commit
e1f5224628
@ -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 New Issue
Block a user