[prev in list] [next in list] [prev in thread] [next in thread]
List: oprofile-commits
Subject: [oprof-cvs] CVS: oprofile/libutil op_deviceio.c,1.10,1.11 op_deviceio.h,1.7,1.8
From: Philippe Elie <phil_e () users ! sourceforge ! net>
Date: 2003-09-26 21:03:14
[Download RAW message or body]
Update of /cvsroot/oprofile/oprofile/libutil
In directory sc8-pr-cvs1:/tmp/cvs-serv6777/libutil
Modified Files:
op_deviceio.c op_deviceio.h
Log Message:
op_open_device(): remove unused parameter fatal.
Index: op_deviceio.c
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libutil/op_deviceio.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -d -r1.10 -r1.11
--- op_deviceio.c 22 Sep 2003 14:10:16 -0000 1.10
+++ op_deviceio.c 26 Sep 2003 21:03:12 -0000 1.11
@@ -19,18 +19,9 @@
#include <string.h>
#include <errno.h>
-fd_t op_open_device(char const * name, int fatal)
+fd_t op_open_device(char const * name)
{
- fd_t fd;
-
- fd = open(name, O_RDONLY);
- if (fatal && fd == -1) {
- fprintf(stderr, "oprofiled:op_open_device: %s: %s\n",
- name, strerror(errno));
- exit(EXIT_FAILURE);
- }
-
- return fd;
+ return open(name, O_RDONLY);
}
Index: op_deviceio.h
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libutil/op_deviceio.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -d -r1.7 -r1.8
--- op_deviceio.h 22 Sep 2003 14:10:17 -0000 1.7
+++ op_deviceio.h 26 Sep 2003 21:03:12 -0000 1.8
@@ -23,12 +23,11 @@ extern "C" {
/**
* op_open_device - open a special char device for reading
* @param name file name of device file
- * @param fatal fatal or not
*
* Open the special file name. Returns the file descriptor
* for the file or -1 on error.
*/
-fd_t op_open_device(char const * name, int fatal);
+fd_t op_open_device(char const * name);
/**
* op_close_device - close a special char device
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic