aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uname.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-22 01:48:07 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-22 01:48:07 +0000
commit2230e04b24d58710b30d25f032c1996a143ba261 (patch)
treeb8cb8d939032c0806d62161b01e5836cb808dc3f /coreutils/uname.c
parent3c7e7e11b41d4a421bcf42fd1bf72a537e051d4a (diff)
downloadbusybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.tar.gz
busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.tar.bz2
busybox-w32-2230e04b24d58710b30d25f032c1996a143ba261.zip
Use busybox error handling functions wherever possible.
git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/uname.c')
-rw-r--r--coreutils/uname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uname.c b/coreutils/uname.c
index 2781b80b3..e7e9ff331 100644
--- a/coreutils/uname.c
+++ b/coreutils/uname.c
@@ -114,11 +114,11 @@ int uname_main(int argc, char **argv)
114 toprint = PRINT_SYSNAME; 114 toprint = PRINT_SYSNAME;
115 115
116 if (uname(&name) == -1) 116 if (uname(&name) == -1)
117 perror("cannot get system name"); 117 perror_msg("cannot get system name");
118 118
119#if defined (HAVE_SYSINFO) && defined (SI_ARCHITECTURE) 119#if defined (HAVE_SYSINFO) && defined (SI_ARCHITECTURE)
120 if (sysinfo(SI_ARCHITECTURE, processor, sizeof(processor)) == -1) 120 if (sysinfo(SI_ARCHITECTURE, processor, sizeof(processor)) == -1)
121 perror("cannot get processor type"); 121 perror_msg("cannot get processor type");
122} 122}
123 123
124#else 124#else