Deleted Added
full compact
ucl_emitter_utils.c (275223) ucl_emitter_utils.c (279549)
1/* Copyright (c) 2014, Vsevolod Stakhov
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above copyright

--- 275 unchanged lines hidden (view full) ---

284 if (write (fd, &c, 1) == -1) {
285 return -1;
286 }
287 }
288 }
289 else {
290 memset (buf, c, len);
291 if (write (fd, buf, len) == -1) {
1/* Copyright (c) 2014, Vsevolod Stakhov
2 * All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above copyright

--- 275 unchanged lines hidden (view full) ---

284 if (write (fd, &c, 1) == -1) {
285 return -1;
286 }
287 }
288 }
289 else {
290 memset (buf, c, len);
291 if (write (fd, buf, len) == -1) {
292 free(buf);
292 return -1;
293 }
294 free (buf);
295 }
296 }
297
298 return 0;
299}

--- 187 unchanged lines hidden ---
293 return -1;
294 }
295 free (buf);
296 }
297 }
298
299 return 0;
300}

--- 187 unchanged lines hidden ---