applied parts of "anonymous" cleanup patch.
This commit is contained in:
parent
189a81caa1
commit
4736edd469
1 changed files with 2 additions and 3 deletions
5
st.c
5
st.c
|
@ -483,8 +483,7 @@ selcopy(void) {
|
||||||
|
|
||||||
void
|
void
|
||||||
selnotify(XEvent *e) {
|
selnotify(XEvent *e) {
|
||||||
unsigned long nitems;
|
unsigned long nitems, ofs, rem;
|
||||||
unsigned long ofs, rem;
|
|
||||||
int format;
|
int format;
|
||||||
unsigned char *data;
|
unsigned char *data;
|
||||||
Atom type;
|
Atom type;
|
||||||
|
@ -767,7 +766,7 @@ tnew(int col, int row) {
|
||||||
term.row = row, term.col = col;
|
term.row = row, term.col = col;
|
||||||
term.line = malloc(term.row * sizeof(Line));
|
term.line = malloc(term.row * sizeof(Line));
|
||||||
term.alt = malloc(term.row * sizeof(Line));
|
term.alt = malloc(term.row * sizeof(Line));
|
||||||
for(row = 0 ; row < term.row; row++) {
|
for(row = 0; row < term.row; row++) {
|
||||||
term.line[row] = malloc(term.col * sizeof(Glyph));
|
term.line[row] = malloc(term.col * sizeof(Glyph));
|
||||||
term.alt [row] = malloc(term.col * sizeof(Glyph));
|
term.alt [row] = malloc(term.col * sizeof(Glyph));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue