diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2003-08-15 18:10:57 -0700 |
|---|---|---|
| committer | Stephen Hemminger <shemminger@osdl.org> | 2003-08-15 18:10:57 -0700 |
| commit | c21b6a8d7169ad68d97c2d7254e7b440072a152a (patch) | |
| tree | 0e31255dc711bd4efca959f1ce2a9f0e2149032d /include | |
| parent | bd07d52e74b32fcba9538307369de1f3a86996ce (diff) | |
[IRDA]: irlap_open should take const string.
irlap_open should take a constant string because it copies
its argument. Therefore, irtty_net_open doesn't have to make
a copy!
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/irda/irda_device.h | 2 | ||||
| -rw-r--r-- | include/net/irda/irlap.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/irda/irda_device.h b/include/net/irda/irda_device.h index a871de37d949..2f8ed2749f9a 100644 --- a/include/net/irda/irda_device.h +++ b/include/net/irda/irda_device.h @@ -209,7 +209,7 @@ void irda_device_cleanup(void); * We declare them here to avoid the driver pulling a whole bunch stack * headers they don't really need - Jean II */ struct irlap_cb *irlap_open(struct net_device *dev, struct qos_info *qos, - char * hw_name); + const char *hw_name); void irlap_close(struct irlap_cb *self); /* Interface to be uses by IrLAP */ diff --git a/include/net/irda/irlap.h b/include/net/irda/irlap.h index e6aba3b50dcb..84a019177970 100644 --- a/include/net/irda/irlap.h +++ b/include/net/irda/irlap.h @@ -217,7 +217,7 @@ int irlap_init(void); void irlap_cleanup(void); struct irlap_cb *irlap_open(struct net_device *dev, struct qos_info *qos, - char * hw_name); + const char *hw_name); void irlap_close(struct irlap_cb *self); void irlap_connect_request(struct irlap_cb *self, __u32 daddr, |
