diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-08 12:59:08 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-08 12:59:08 +0000 |
commit | 73d4f4b0bbe7918134fc2d687298af0181a5030d (patch) | |
tree | 3c5975217964388c44d7df879a8c5d8a4cff661d /time.c | |
parent | 58d69379c19db540c4a9692c0d6dba75668e7629 (diff) |
* time.c (time_free): prototype; struct time_object -> void *.
avoid GCC warnings.
* lib/mkmf.rb, ext/extmk.rb ($LINK, $CPP): move to lib/mkmf.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,11 +43,11 @@ struct time_object { #define GetTimeval(obj, tobj) \ Data_Get_Struct(obj, struct time_object, tobj) -static void time_free _((struct time_object *)); +static void time_free _((void *)); static void time_free(tobj) - struct time_object *tobj; + void *tobj; { if (tobj) free(tobj); } |