summaryrefslogtreecommitdiff
path: root/modules/ppp_comp.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2020-12-29 16:08:24 +1100
committerPaul Mackerras <paulus@ozlabs.org>2020-12-29 16:08:24 +1100
commit75870d7b55e36af526a0786fff94912989c73fd1 (patch)
tree1de0db83a52899c60f3b7abc0934e377a1667ab7 /modules/ppp_comp.c
parent505ec5cbd15ec23ed84282462ae9e451a1978133 (diff)
downloadppp-75870d7b55e36af526a0786fff94912989c73fd1.tar.gz
Convert to ANSI C
This gets rid of the __P and __V macros that were used so that the code was in theory compilable by a K&R C compiler, and converts the function definitions to ANSI C style. In fact there were already quite a few function definitions in the ANSI C style, so it would not have been compilable by a K&R C compiler in fact. The Solaris and BSD kernel code modules have had __P removed but the function definitions have not been converted. There are some other minor changes here to remove warnings. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'modules/ppp_comp.c')
-rw-r--r--modules/ppp_comp.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/modules/ppp_comp.c b/modules/ppp_comp.c
index 97d13eb..9e204d9 100644
--- a/modules/ppp_comp.c
+++ b/modules/ppp_comp.c
@@ -31,8 +31,6 @@
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * $Id: ppp_comp.c,v 1.14 2002/12/06 09:49:15 paulus Exp $
*/
/*
@@ -74,12 +72,12 @@
MOD_OPEN_DECL(ppp_comp_open);
MOD_CLOSE_DECL(ppp_comp_close);
-static int ppp_comp_rput __P((queue_t *, mblk_t *));
-static int ppp_comp_rsrv __P((queue_t *));
-static int ppp_comp_wput __P((queue_t *, mblk_t *));
-static int ppp_comp_wsrv __P((queue_t *));
-static void ppp_comp_ccp __P((queue_t *, mblk_t *, int));
-static int msg_byte __P((mblk_t *, unsigned int));
+static int ppp_comp_rput(queue_t *, mblk_t *);
+static int ppp_comp_rsrv(queue_t *);
+static int ppp_comp_wput(queue_t *, mblk_t *);
+static int ppp_comp_wsrv(queue_t *);
+static void ppp_comp_ccp(queue_t *, mblk_t *, int);
+static int msg_byte(mblk_t *, unsigned int);
/* Extract byte i of message mp. */
#define MSG_BYTE(mp, i) ((i) < (mp)->b_wptr - (mp)->b_rptr? (mp)->b_rptr[i]: \
@@ -118,7 +116,7 @@ int ppp_comp_count; /* number of module instances in use */
#ifdef __osf__
-static void ppp_comp_alloc __P((comp_state_t *));
+static void ppp_comp_alloc(comp_state_t *);
typedef struct memreq {
unsigned char comp_opts[20];
int cmd;