comparison toys/pending/syslogd.c @ 1183:0752b2d58909 draft

Rename xmsprintf() to just xmprintf(). Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in.
author Rob Landley <rob@landley.net>
date Thu, 16 Jan 2014 09:26:50 -0600
parents e11684e3bbc5
children 0ecfaa7022e8
comparison
equal deleted inserted replaced
1182:7079ea384a2e 1183:0752b2d58909
174 * files are neglected thus no need to 174 * files are neglected thus no need to
175 * open config either so just return. 175 * open config either so just return.
176 */ 176 */
177 if (toys.optflags & FLAG_R) { 177 if (toys.optflags & FLAG_R) {
178 file = xzalloc(sizeof(struct logfile)); 178 file = xzalloc(sizeof(struct logfile));
179 file->filename = xmsprintf("@%s",TT.remote_log); 179 file->filename = xmprintf("@%s",TT.remote_log);
180 TT.lfiles = file; 180 TT.lfiles = file;
181 if (!(toys.optflags & FLAG_L)) return 0; 181 if (!(toys.optflags & FLAG_L)) return 0;
182 } 182 }
183 /* 183 /*
184 * Read config file and add logfiles to the list 184 * Read config file and add logfiles to the list