ppp: make channel_ops const
The PPP channel ops structure should be const. Cleanup the declarations to use standard C99 format. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Dieser Commit ist enthalten in:

committet von
David S. Miller

Ursprung
3b5bac2bde
Commit
d7100da026
@@ -260,7 +260,7 @@ static int pppoatm_devppp_ioctl(struct ppp_channel *chan, unsigned int cmd,
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
static /*const*/ struct ppp_channel_ops pppoatm_ops = {
|
||||
static const struct ppp_channel_ops pppoatm_ops = {
|
||||
.start_xmit = pppoatm_send,
|
||||
.ioctl = pppoatm_devppp_ioctl,
|
||||
};
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren