mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
lib:util: Use C99 initializer for weird_table in charset
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
014a72c7da
commit
fe78ebcbc0
@ -28,9 +28,19 @@ static struct {
|
||||
const char *to;
|
||||
int len;
|
||||
} weird_table[] = {
|
||||
{'q', "^q^", 3},
|
||||
{'Q', "^Q^", 3},
|
||||
{0, NULL}
|
||||
{
|
||||
.from = 'q',
|
||||
.to = "^q^",
|
||||
.len = 3,
|
||||
},
|
||||
{
|
||||
.from = 'Q',
|
||||
.to = "^Q^",
|
||||
.len = 3,
|
||||
},
|
||||
{
|
||||
.len = 0,
|
||||
}
|
||||
};
|
||||
|
||||
size_t weird_pull(void *cd, const char **inbuf, size_t *inbytesleft,
|
||||
|
Loading…
Reference in New Issue
Block a user