Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (17 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/console-tools/setlogcons.c

    r821 r1765  
     1/* vi: set sw=4 ts=4: */
    12/*
    2  * setlogcons: Send kernel messages to the current console or to console N 
     3 * setlogcons: Send kernel messages to the current console or to console N
    34 *
    45 * Copyright (C) 2006 by Jan Kiszka <jan.kiszka@web.de>
     
    910 */
    1011
    11 #include <stdio.h>
    12 #include <stdlib.h>
    13 #include <fcntl.h>
    14 #include <sys/ioctl.h>
    15 #include "busybox.h"
     12#include "libbb.h"
    1613
    17 extern int setlogcons_main(int argc, char **argv)
     14int setlogcons_main(int argc, char **argv);
     15int setlogcons_main(int argc, char **argv)
    1816{
    1917    struct {
     
    2624
    2725    if (argc == 2)
    28         arg.subarg = atoi(argv[1]);
     26        arg.subarg = xatoul_range(argv[1], 0, 63);
    2927
    30     if (ioctl(bb_xopen(VC_1, O_RDONLY), TIOCLINUX, &arg))
    31         bb_perror_msg_and_die("TIOCLINUX");;
     28    xioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg);
    3229
    3330    return 0;
Note: See TracChangeset for help on using the changeset viewer.