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:
pfg 2016-07-09 02:33:45 +00:00
parent a03db12076
commit e1f5224628
2 changed files with 3 additions and 2 deletions

View File

@ -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. */

View File

@ -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);
}