aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
committerRob Landley <rob@landley.net>2006-08-03 15:41:12 +0000
commitd921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /loginutils/getty.c
parent6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff)
downloadbusybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2
busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 2d05d9a1c..ebb107d4b 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -16,19 +16,6 @@
16 * 16 *
17 */ 17 */
18 18
19#include <stdio.h>
20#include <stdlib.h>
21#include <unistd.h>
22#include <string.h>
23#include <sys/ioctl.h>
24#include <errno.h>
25#include <sys/stat.h>
26#include <signal.h>
27#include <fcntl.h>
28#include <stdarg.h>
29#include <ctype.h>
30#include <getopt.h>
31#include <termios.h>
32#include "busybox.h" 19#include "busybox.h"
33 20
34#ifdef CONFIG_FEATURE_UTMP 21#ifdef CONFIG_FEATURE_UTMP
@@ -324,7 +311,7 @@ static void parse_args(int argc, char **argv, struct options *op)
324 const char *p = op->initstring; 311 const char *p = op->initstring;
325 char *q; 312 char *q;
326 313
327 q = op->initstring = bb_xstrdup(op->initstring); 314 q = op->initstring = xstrdup(op->initstring);
328 /* copy optarg into op->initstring decoding \ddd 315 /* copy optarg into op->initstring decoding \ddd
329 octal codes into chars */ 316 octal codes into chars */
330 while (*p) { 317 while (*p) {
@@ -858,7 +845,7 @@ int getty_main(int argc, char **argv)
858 }; 845 };
859 846
860#ifdef DEBUGGING 847#ifdef DEBUGGING
861 dbf = bb_xfopen(DEBUGTERM, "w"); 848 dbf = xfopen(DEBUGTERM, "w");
862 849
863 { 850 {
864 int i; 851 int i;