]> Git Repo - J-u-boot.git/blame - cmd/exit.c
hash: Ensure verification hex pairs are terminated
[J-u-boot.git] / cmd / exit.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
6b8f5ad1
PT
2/*
3 * Copyright 2000-2009
4 * Wolfgang Denk, DENX Software Engineering, [email protected].
6b8f5ad1
PT
5 */
6
7#include <common.h>
8#include <command.h>
9
09140113
SG
10static int do_exit(struct cmd_tbl *cmdtp, int flag, int argc,
11 char *const argv[])
6b8f5ad1 12{
6b8f5ad1 13 if (argc > 1)
8c4e3b79 14 return simple_strtoul(argv[1], NULL, 10);
6b8f5ad1 15
8c4e3b79 16 return 0;
6b8f5ad1
PT
17}
18
19U_BOOT_CMD(
20 exit, 2, 1, do_exit,
21 "exit script",
22 ""
23);
This page took 0.406593 seconds and 4 git commands to generate.